File tree Expand file tree Collapse file tree
kotlin/com/almasb/fxgl/core/reflect
resources/nativeLibs/mac64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,8 +26,19 @@ class ForeignFunctionCallerTest {
2626 @EnabledOnOs(OS .WINDOWS )
2727 @Test
2828 @EnabledIfEnvironmentVariable(named = " CI" , matches = " true" )
29- fun `Downcall a native function` () {
30- val file = ResourceExtractor .extractNativeLibAsPath(" native-lib-test.dll" )
29+ fun `Downcall a native function in Windows` () {
30+ `Downcall a native function`(" native-lib-test.dll" )
31+ }
32+
33+ @EnabledOnOs(OS .MAC )
34+ @Test
35+ @EnabledIfEnvironmentVariable(named = " CI" , matches = " true" )
36+ fun `Downcall a native function in MacOS` () {
37+ `Downcall a native function`(" native-lib-test.dylib" )
38+ }
39+
40+ fun `Downcall a native function` (libName : String ) {
41+ val file = ResourceExtractor .extractNativeLibAsPath(libName)
3142
3243 val countDown = CountDownLatch (1 )
3344 val count = AtomicInteger ()
@@ -61,4 +72,5 @@ class ForeignFunctionCallerTest {
6172
6273 assertThat(count.get(), `is `(25 ))
6374 }
75+
6476}
You can’t perform that action at this time.
0 commit comments