Skip to content

Commit e14ab4c

Browse files
fixup! fixup! fixup! fixup! Replace relpath with cheaper function
1 parent b44417c commit e14ab4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/internals.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ end
396396
@test nestedrelpath(path, "test/dir/other/bar_test.jl") == "test/dir/foo_test.jl"
397397

398398
if isdefined(Base, Symbol("@allocations")) # added in Julia v1.9
399-
@test 1 >= @allocations(nestedrelpath(path, "test"))
400-
@test 1 >= @allocations(nestedrelpath(path, "test/dir"))
401-
@test 0 == @allocations(nestedrelpath(path, "test/dir/foo_test.jl"))
402-
@test 0 == @allocations(nestedrelpath(path, "test/dir/other"))
403-
@test 0 == @allocations(nestedrelpath(path, "test/dir/other/bar_test.jl"))
399+
@test 2 >= @allocations(nestedrelpath(path, "test"))
400+
@test 2 >= @allocations(nestedrelpath(path, "test/dir"))
401+
@test 1 >= @allocations(nestedrelpath(path, "test/dir/foo_test.jl"))
402+
@test 1 >= @allocations(nestedrelpath(path, "test/dir/other"))
403+
@test 1 >= @allocations(nestedrelpath(path, "test/dir/other/bar_test.jl"))
404404
end
405405
end
406406

0 commit comments

Comments
 (0)