llvm-project/compiler-rt/lib/tsan/tests/unit
Alexey Samsonov bb79b06f4e [Sanitizers] Unify the semantics and usage of "exitcode" runtime flag across all sanitizers.
Summary:
Merge "exitcode" flag from ASan, LSan, TSan and "exit_code" from MSan
into one entity. Additionally, make sure sanitizer_common now uses the
value of common_flags()->exitcode when dying on error, so that this
flag will automatically work for other sanitizers (UBSan and DFSan) as
well.

User-visible changes:
* "exit_code" MSan runtime flag is now deprecated. If explicitly
  specified, this flag will take precedence over "exitcode".
  The users are encouraged to migrate to the new version.
* __asan_set_error_exit_code() and __msan_set_exit_code() functions
  are removed. With few exceptions, we don't support changing runtime
  flags during program execution - we can't make them thread-safe.
  The users should use __sanitizer_set_death_callback()
  that would call _exit() with proper exit code instead.
* Plugin tools (LSan and UBSan) now inherit the exit code of the parent
  tool. In particular, this means that ASan would now crash the program
  with exit code "1" instead of "23" if it detects leaks.

Reviewers: kcc, eugenis

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D12120

llvm-svn: 245734
2015-08-21 20:49:37 +00:00
..
CMakeLists.txt [TSan] Use Clang to compile and link TSan unit tests with TSan runtime 2013-09-11 09:56:33 +00:00
tsan_clock_test.cc [TSan] Fix -Werror=sign-compare warning. NFC. 2015-01-30 01:02:12 +00:00
tsan_dense_alloc_test.cc [TSan] Fix signed-compare warning in the unit test 2014-11-03 22:17:39 +00:00
tsan_flags_test.cc [Sanitizers] Unify the semantics and usage of "exitcode" runtime flag across all sanitizers. 2015-08-21 20:49:37 +00:00
tsan_mman_test.cc Remove TSAN_DEBUG in favor of SANITIZER_DEBUG. 2015-01-03 04:29:12 +00:00
tsan_mutex_test.cc Remove TSAN_DEBUG in favor of SANITIZER_DEBUG. 2015-01-03 04:29:12 +00:00
tsan_mutexset_test.cc tsan: fix incorrect test 2013-03-20 13:49:45 +00:00
tsan_shadow_test.cc tsan: flip is_write bit in shadow to is_read 2013-02-01 10:02:55 +00:00
tsan_stack_test.cc [TSan] Use StackTrace from sanitizer_common where applicable 2014-11-03 22:23:44 +00:00
tsan_sync_test.cc tsan: allocate vector clocks using slab allocator 2014-08-05 18:45:02 +00:00
tsan_unit_test_main.cc [TSan] Use Clang to compile and link TSan unit tests with TSan runtime 2013-09-11 09:56:33 +00:00
tsan_vector_test.cc tsan: remove in_rtl counter 2013-12-24 12:55:56 +00:00