Skip to content

Commit dbf61e5

Browse files
authored
fix test error on metadata (#28)
1 parent 15e3bbf commit dbf61e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/runtests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ PackageCompiler.compile_package("Matcha", "UnicodeFun", force = false, reuse = f
77
# build again, with resuing the snoop file
88
img_file = PackageCompiler.compile_package("Matcha", "UnicodeFun", force = false, reuse = true)
99
# TODO test revert - I suppose i wouldn't have enough rights on travis to move around dll's?
10-
10+
julia = Base.julia_cmd().exec[1]
1111
@testset "basic tests" begin
1212
@test isfile(img_file)
1313
userimg = PackageCompiler.sysimg_folder("precompile.jl")
1414
@test isfile(userimg)
1515
# Make sure we actually snooped stuff
1616
@test length(readlines(userimg)) > 700
17-
@test success(`julia -J $(img_file)`)
17+
@test success(`$julia -J $(img_file)`)
1818
mktempdir() do dir
1919
sysfile = joinpath(dir, "sys")
2020
PackageCompiler.compile_system_image(sysfile, "native")
@@ -29,7 +29,6 @@ end
2929
juliac = joinpath(@__DIR__, "..", "juliac.jl")
3030
jlfile = joinpath(@__DIR__, "..", "examples", "hello.jl")
3131
cfile = joinpath(@__DIR__, "..", "examples", "program.c")
32-
julia = Base.julia_cmd()
3332
@test success(`$julia $juliac -vosej $jlfile $cfile $build`)
3433
@test isfile(joinpath(build, "hello.$(Libdl.dlext)"))
3534
@test isfile(joinpath(build, "hello$(executable_ext())"))

0 commit comments

Comments
 (0)