Skip to content

Commit edb7ebd

Browse files
authored
More stuff
1 parent 296c276 commit edb7ebd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/runtests.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ end
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)
@@ -285,9 +283,17 @@ end
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)\nIncremented 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.

0 commit comments

Comments
 (0)