[compiler-rt] [compiler-rt][rtsan] Use Die instead of exit, define cf.exitcode (PR #107635)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 12:43:28 PDT 2024
================
@@ -8,8 +8,25 @@
//
//===----------------------------------------------------------------------===//
+#include "sanitizer_common/sanitizer_platform.h"
#include "sanitizer_test_utils.h"
+// Default RTSAN_OPTIONS for the unit tests.
+extern "C" const char *__rtsan_default_options() {
+#if SANITIZER_APPLE
+ // On Darwin, we default to `abort_on_error=1`, which would make tests run
+ // much slower. Let's override this and run lit tests with 'abort_on_error=0'
+ // and make sure we do not overwhelm the syslog while testing. Also, let's
+ // turn symbolization off to speed up testing, especially when not running
+ // with llvm-symbolizer but with atos.
----------------
cjappl wrote:
This does fairly drastically speed up our unit tests. The difference is very noticeable
https://github.com/llvm/llvm-project/pull/107635
More information about the llvm-commits
mailing list