rename C test files to include _test (#196)
- commit
- a546a4d9ae4bc610374a14e0cd7fa951340730cc
- author
- TotallyGamerJet · · 2024-01-13 14:29 UTC
- committer
- GitHub · · 2024-01-13 14:29 UTC
- parent
- f163b4c
- signature
- GPG Unverified
4AEE18F83AFDEB23The key is unknown - refs
- tag: v0.6.0-alpha.3
4 files · +2 -2
M callback_test.go +1 -1
| @@ -20,7 +20,7 @@ func TestCallGoFromSharedLib(t *testing.T) { | |||
| 20 | 20 | libFileName := filepath.Join(t.TempDir(), "libcbtest.so") | |
| 21 | 21 | t.Logf("Build %v", libFileName) | |
| 22 | 22 | ||
| 23 | - | if err := buildSharedLib("CC", libFileName, filepath.Join("libcbtest", "callback.c")); err != nil { | |
| 23 | + | if err := buildSharedLib("CC", libFileName, filepath.Join("libcbtest", "callback_test.c")); err != nil { | |
| 24 | 24 | t.Fatal(err) | |
| 25 | 25 | } | |
| 26 | 26 | defer os.Remove(libFileName) | |
| @@ -20,7 +20,7 @@ func TestCallGoFromSharedLib(t *testing.T) { | |||||
| 20 | libFileName := filepath.Join(t.TempDir(), "libcbtest.so") | 20 | libFileName := filepath.Join(t.TempDir(), "libcbtest.so") | ||
| 21 | t.Logf("Build %v", libFileName) | 21 | t.Logf("Build %v", libFileName) | ||
| 22 | 22 | ||||
| 23 | - | if err := buildSharedLib("CC", libFileName, filepath.Join("libcbtest", "callback.c")); err != nil { | 23 | + | if err := buildSharedLib("CC", libFileName, filepath.Join("libcbtest", "callback_test.c")); err != nil { |
| 24 | t.Fatal(err) | 24 | t.Fatal(err) | ||
| 25 | } | 25 | } | ||
| 26 | defer os.Remove(libFileName) | 26 | defer os.Remove(libFileName) | ||
M dlfcn_test.go +1 -1
| @@ -28,7 +28,7 @@ func TestNestedDlopenCall(t *testing.T) { | |||
| 28 | 28 | libFileName := filepath.Join(t.TempDir(), "libdlnested.so") | |
| 29 | 29 | t.Logf("Build %v", libFileName) | |
| 30 | 30 | ||
| 31 | - | if err := buildSharedLib("CXX", libFileName, filepath.Join("libdlnested", "nested.cpp")); err != nil { | |
| 31 | + | if err := buildSharedLib("CXX", libFileName, filepath.Join("libdlnested", "nested_test.cpp")); err != nil { | |
| 32 | 32 | t.Fatal(err) | |
| 33 | 33 | } | |
| 34 | 34 | defer os.Remove(libFileName) | |
| @@ -28,7 +28,7 @@ func TestNestedDlopenCall(t *testing.T) { | |||||
| 28 | libFileName := filepath.Join(t.TempDir(), "libdlnested.so") | 28 | libFileName := filepath.Join(t.TempDir(), "libdlnested.so") | ||
| 29 | t.Logf("Build %v", libFileName) | 29 | t.Logf("Build %v", libFileName) | ||
| 30 | 30 | ||||
| 31 | - | if err := buildSharedLib("CXX", libFileName, filepath.Join("libdlnested", "nested.cpp")); err != nil { | 31 | + | if err := buildSharedLib("CXX", libFileName, filepath.Join("libdlnested", "nested_test.cpp")); err != nil { |
| 32 | t.Fatal(err) | 32 | t.Fatal(err) | ||
| 33 | } | 33 | } | ||
| 34 | defer os.Remove(libFileName) | 34 | defer os.Remove(libFileName) | ||
R libcbtest/callback.c → libcbtest/callback_test.c +0 -0 renamed, 100% similar
renamed, 100% similar
R libdlnested/nested.cpp → libdlnested/nested_test.cpp +0 -0 renamed, 100% similar
renamed, 100% similar