Skip to content

Commit 6773f18

Browse files
committed
Move realpath() earlier in cmdlineargs test
1 parent e0740fe commit 6773f18

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/cmdlineargs.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
416416

417417
# test the program name remains constant
418418
mktempdir() do dir
419-
a = joinpath(dir, "a.jl")
420-
b = joinpath(dir, "b.jl")
421-
c = joinpath(dir, ".julia", "config", "startup.jl")
419+
a = realpath(joinpath(dir, "a.jl"))
420+
b = realpath(joinpath(dir, "b.jl"))
421+
c = realpath(joinpath(dir, ".julia", "config", "startup.jl"))
422422

423423
write(a, """
424424
println(@__FILE__)
@@ -439,19 +439,19 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
439439
[a, a,
440440
b, a]
441441
@test readsplit(`$exename -L $b -e 'exit(0)'`) ==
442-
[realpath(b), ""]
442+
[b, ""]
443443
@test readsplit(`$exename -L $b $a`) ==
444-
[realpath(b), a,
444+
[b, a,
445445
a, a,
446446
b, a]
447447
@test readsplit(`$exename --startup-file=yes -e 'exit(0)'`) ==
448448
[c, ""]
449449
@test readsplit(`$exename --startup-file=yes -L $b -e 'exit(0)'`) ==
450450
[c, "",
451-
realpath(b), ""]
451+
b, ""]
452452
@test readsplit(`$exename --startup-file=yes -L $b $a`) ==
453453
[c, a,
454-
realpath(b), a,
454+
b, a,
455455
a, a,
456456
b, a]
457457
end

0 commit comments

Comments
 (0)