Skip to content

Commit

Permalink
cd to test dir when running libdl test
Browse files Browse the repository at this point in the history
since this specifically needs to test different combinations of relative
vs absolute paths
  • Loading branch information
tkelman committed Jul 19, 2015
1 parent 250a5b9 commit 8181111
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/libdl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ end
@test_throws ArgumentError Libdl.dlsym(C_NULL, :foo)
@test_throws ArgumentError Libdl.dlsym_e(C_NULL, :foo)

cd(dirname(@__FILE__)) do

# @test !isempty(Libdl.find_library(["libccalltest"], [dirname(@__FILE__)]))

# dlopen should be able to handle absolute and relative paths, with and without dlext
Expand Down Expand Up @@ -160,3 +162,5 @@ let dl = C_NULL
Libdl.dlclose(dl)
end
end

end

0 comments on commit 8181111

Please sign in to comment.