Skip to content

Commit ccd1548

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/cmdlineargs.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,24 +434,29 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
434434

435435
readsplit(cmd) = split(readchomp(cmd), '\n')
436436

437+
# Convert to real paths now that they all exist
438+
a = realpath(a)
439+
b = realpath(b)
440+
c = realpath(c)
441+
437442
withenv((Sys.iswindows() ? "USERPROFILE" : "HOME") => dir) do
438443
@test readsplit(`$exename $a`) ==
439444
[a, a,
440445
b, a]
441446
@test readsplit(`$exename -L $b -e 'exit(0)'`) ==
442-
[realpath(b), ""]
447+
[b, ""]
443448
@test readsplit(`$exename -L $b $a`) ==
444-
[realpath(b), a,
449+
[b, a,
445450
a, a,
446451
b, a]
447452
@test readsplit(`$exename --startup-file=yes -e 'exit(0)'`) ==
448453
[c, ""]
449454
@test readsplit(`$exename --startup-file=yes -L $b -e 'exit(0)'`) ==
450455
[c, "",
451-
realpath(b), ""]
456+
b, ""]
452457
@test readsplit(`$exename --startup-file=yes -L $b $a`) ==
453458
[c, a,
454-
realpath(b), a,
459+
b, a,
455460
a, a,
456461
b, a]
457462
end

0 commit comments

Comments
 (0)