mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
Workaround regressions/smt2/error.smt2
test timing out.
When ASan's LeakSanitizer is enabled leak checking is triggered when `exit()` is called and it returns so many false positives that it takes a long time to write them to the console. To workaround this we simply call `_Exit()` instead.
This commit is contained in:
parent
fd98593a58
commit
35f6746c60
1 changed files with 4 additions and 1 deletions
|
@ -444,7 +444,10 @@ namespace smt2 {
|
||||||
m_ctx.regular_stream()<< "line " << line << " column " << pos << ": " << escaped(msg, true) << "\")" << std::endl;
|
m_ctx.regular_stream()<< "line " << line << " column " << pos << ": " << escaped(msg, true) << "\")" << std::endl;
|
||||||
}
|
}
|
||||||
if (m_ctx.exit_on_error()) {
|
if (m_ctx.exit_on_error()) {
|
||||||
exit(1);
|
// WORKAROUND: ASan's LeakSanitizer reports many false positives when
|
||||||
|
// calling `exit()` so call `_Exit()` instead which avoids invoking leak
|
||||||
|
// checking.
|
||||||
|
_Exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue