diff --git a/test/codegen.jl b/test/codegen.jl index d3be8d7486480c..ba7c55b5417438 100644 --- a/test/codegen.jl +++ b/test/codegen.jl @@ -3,7 +3,7 @@ # tests for codegen and optimizations const opt_level = Base.JLOptions().opt_level -const coverage = Base.JLOptions().code_coverage || Base.JLOptions().malloc_log +const coverage = (Base.JLOptions().code_coverage > 0) || (Base.JLOptions().malloc_log > 0) const Iptr = sizeof(Int) == 8 ? "i64" : "i32" # `_dump_function` might be more efficient but it doesn't really matter here...