Skip to content

Commit 394eca4

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

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/cmdlineargs.jl

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

417417
# test the program name remains constant
418418
mktempdir() do dir
419+
# dir can be case-incorrect sometimes
420+
dir = realpath(dir)
421+
419422
a = joinpath(dir, "a.jl")
420423
b = joinpath(dir, "b.jl")
421424
c = joinpath(dir, ".julia", "config", "startup.jl")
@@ -439,19 +442,19 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
439442
[a, a,
440443
b, a]
441444
@test readsplit(`$exename -L $b -e 'exit(0)'`) ==
442-
[realpath(b), ""]
445+
[b, ""]
443446
@test readsplit(`$exename -L $b $a`) ==
444-
[realpath(b), a,
447+
[b, a,
445448
a, a,
446449
b, a]
447450
@test readsplit(`$exename --startup-file=yes -e 'exit(0)'`) ==
448451
[c, ""]
449452
@test readsplit(`$exename --startup-file=yes -L $b -e 'exit(0)'`) ==
450453
[c, "",
451-
realpath(b), ""]
454+
b, ""]
452455
@test readsplit(`$exename --startup-file=yes -L $b $a`) ==
453456
[c, a,
454-
realpath(b), a,
457+
b, a,
455458
a, a,
456459
b, a]
457460
end

0 commit comments

Comments
 (0)