Skip to content

Commit

Permalink
Attempting to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Kondrashov committed Jan 22, 2024
1 parent 49baa67 commit b230cc3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/Configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ end
end

@testset "flag conversion" begin
@test _convert_to_flags(Configuration.CompilerOptions(threads="123")) ==
["--heap-size-hint=1G", "--startup-file=no", "--history-file=no", "--threads=123"]
reference_flags = ["--startup-file=no", "--history-file=no", "--threads=123"]
if VERSION v"1.9"
pushfirst!(reference_flags, "--heap-size-hint=2G")
end

@test _convert_to_flags(Configuration.CompilerOptions(threads=123)) ==
["--heap-size-hint=1G", "--startup-file=no", "--history-file=no", "--threads=123"]
@test _convert_to_flags(Configuration.CompilerOptions(threads="123")) == reference_flags
@test _convert_to_flags(Configuration.CompilerOptions(threads=123)) == reference_flags

@test _convert_to_flags(Configuration.CompilerOptions())
["--startup-file=no", "--history-file=no"]
Expand Down

0 comments on commit b230cc3

Please sign in to comment.