File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 250250 if Sys. iswindows ()
251251 @info " Skipping the examples/MyLib test on Windows"
252252 @test_skip false
253- elseif Sys. isapple ()
254- @info " Skipping the examples/MyLib test on macOS"
255- @test_skip false
253+ # TODO : Figure out how to get this testset to work on Windows.
256254 else
257255 rootdir_testdir = @__DIR__
258256 rootdir = dirname (rootdir_testdir)
285283 my_run (` $(GNUMake_jll. make ()) ` )
286284
287285 env2 = copy (ENV )
288- env2[" LD_LIBRARY_PATH" ] = " examples/MyLib/MyLibCompiled/lib"
286+ if Sys. isapply ()
287+ env2[" DYLD_FALLBACK_LIBRARY_PATH" ] = " ./MyLibCompiled/lib/:./MyLibCompiled/lib/julia"
288+ else
289+ # env2["LD_LIBRARY_PATH"] = "./MyLibCompiled/lib/:./MyLibCompiled/lib/julia"
290+ env2[" LD_LIBRARY_PATH" ] = " ./MyLibCompiled/lib/"
291+ end
289292 cmd = ` ./examples/MyLib/my_application.out`
290293 run (setenv (cmd, env2))
294+ observed_str = strip (read (setenv (cmd, env2), String))
295+ expected_str = " Incremented count: 4 (Cint)\n Incremented value: 4"
296+ @test observed_str == expected_str
291297
292298 # Finally, exercise a few more `Makefile` targets, to make sure that they
293299 # don't bitrot.
You can’t perform that action at this time.
0 commit comments