From b230cc301349125917e38e39cd8e3f309d0ca5ba Mon Sep 17 00:00:00 2001 From: Kirill Kondrashov Date: Mon, 22 Jan 2024 16:56:13 +0100 Subject: [PATCH] Attempting to fix tests --- test/Configuration.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/Configuration.jl b/test/Configuration.jl index 7e30ec6378..894c240c0a 100644 --- a/test/Configuration.jl +++ b/test/Configuration.jl @@ -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"]