diff --git a/src/Operations.jl b/src/Operations.jl index 63505116ea..c64b189e8e 100644 --- a/src/Operations.jl +++ b/src/Operations.jl @@ -1282,6 +1282,7 @@ function gen_test_code(testfile::String; --color=$(Base.have_color === nothing ? "auto" : Base.have_color ? "yes" : "no") --compiled-modules=$(Bool(Base.JLOptions().use_compiled_modules) ? "yes" : "no") --check-bounds=yes + --depwarn=$(Base.JLOptions().depwarn == 2 ? "error" : "yes") --inline=$(Bool(Base.JLOptions().can_inline) ? "yes" : "no") --startup-file=$(Base.JLOptions().startupfile == 1 ? "yes" : "no") --track-allocation=$(("none", "user", "all")[Base.JLOptions().malloc_log + 1]) diff --git a/test/test_packages/TestArguments/test/runtests.jl b/test/test_packages/TestArguments/test/runtests.jl index d09c33ae03..ea1738e46e 100644 --- a/test/test_packages/TestArguments/test/runtests.jl +++ b/test/test_packages/TestArguments/test/runtests.jl @@ -1,3 +1,4 @@ @assert ARGS == ["a", "b"] @assert Base.JLOptions().quiet == 1 # --quiet @assert Base.JLOptions().check_bounds == 2 # overriden default when testing +@assert Base.JLOptions().depwarn == 1 # Default to depwarn on