Commit 34ffaf66 by Jason Merrill Committed by Jason Merrill

* lib/asan-dg.exp: Don't run tests if ulimit -v is set.

From-SVN: r259333
parent 26a998b0
2018-04-11 Jason Merrill <jason@redhat.com>
* lib/asan-dg.exp (check_effective_target_fsanitize_address): False
if ulimit -v is set.
2018-04-11 Bin Cheng <bin.cheng@arm.com>
PR testsuite/85190
......
......@@ -18,9 +18,24 @@
# code, 0 otherwise.
proc check_effective_target_fsanitize_address {} {
return [check_no_compiler_messages fsanitize_address executable {
if ![check_no_compiler_messages fsanitize_address executable {
int main (void) { return 0; }
}]
}] {
return 0;
}
# asan doesn't work if there's a ulimit on virtual memory.
if ![is_remote target] {
if [catch {exec sh -c "ulimit -v"} ulimit_v] {
# failed to get ulimit
} elseif [regexp {^[0-9]+$} $ulimit_v] {
# ulimit -v gave a numeric limit
warning "skipping asan tests due to ulimit -v"
return 0;
}
}
return 1;
}
proc asan_include_flags {} {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment