llvm-project/compiler-rt/lib/sanitizer_common/tests
Teresa Johnson 634da7a1c6 [sanitizer] Check if directory exists before trying to create
Add a DirExists mechanism, modeled after FileExists. Use it to guard
creation of the report path directory.

This should avoid failures running the sanitizer in a sandbox where the
file creation attempt causes hard failures, even for an existing
directory. Problem reported on D109794 for ChromeOS in sandbox
(https://issuetracker.google.com/209296420).

Differential Revision: https://reviews.llvm.org/D119495
2022-02-13 06:59:32 -08:00
..
CMakeLists.txt [sanitizer_common][test] Enable tests on SPARC 2022-02-01 22:33:56 +01:00
malloc_stress_transfer_test.cpp
sanitizer_addrhashmap_test.cpp [sanitizer] Add a ForEach callback interface for AddrHashMap. 2021-11-11 11:29:36 -08:00
sanitizer_allocator_test.cpp [NFC][sanitizer] Rename ByteMap to Map 2021-10-10 22:23:48 -07:00
sanitizer_allocator_testlib.cpp
sanitizer_atomic_test.cpp [NFC][sanitizer] Fix 'macro redefined' warning in test 2021-05-16 19:11:07 -07:00
sanitizer_bitvector_test.cpp [sanitizer] Define 32bit uptr as uint 2021-08-16 15:46:37 -07:00
sanitizer_bvgraph_test.cpp
sanitizer_chained_origin_depot_test.cpp [sanitizer] Remove SpinMutexLock from stat function 2021-10-12 13:49:10 -07:00
sanitizer_common_test.cpp sanitizer_common: make internal/external headers compatible 2022-02-11 19:39:44 +01:00
sanitizer_deadlock_detector_test.cpp
sanitizer_dense_map_test.cpp [sanitizer_common] Fix DenseMapCustomTest.DefaultMinReservedSizeTest on SPARC 2022-02-09 09:12:02 +01:00
sanitizer_flags_test.cpp
sanitizer_flat_map_test.cpp [NFC][sanitizer] Refactor Maps into templates 2021-10-12 13:37:44 -07:00
sanitizer_format_interceptor_test.cpp [msan] Support %ms in scanf. 2020-08-06 13:54:43 -07:00
sanitizer_hash_test.cpp [NFC][sanitizer] Add MurMur2Hash64Builder 2021-10-05 20:54:06 -07:00
sanitizer_ioctl_test.cpp
sanitizer_leb128_test.cpp [sanitizer] Add Leb128 encoding/decoding 2021-11-29 17:12:34 -08:00
sanitizer_libc_test.cpp [sanitizer] Check if directory exists before trying to create 2022-02-13 06:59:32 -08:00
sanitizer_linux_test.cpp [sanitizer] Simplify GetTls with dl_iterate_phdr on Linux and use it on musl/FreeBSD 2021-04-15 15:34:43 -07:00
sanitizer_list_test.cpp
sanitizer_lzw_test.cpp [sanitizer] Add Lempel–Ziv–Welch encoder/decoder 2021-12-03 13:11:40 -08:00
sanitizer_mac_test.cpp [Sanitizer][Darwin] Fix test for macOS 11+ point releases 2021-01-12 15:23:43 -08:00
sanitizer_mutex_test.cpp sanitizer_common: replace RWMutex/BlockingMutex with Mutex 2021-07-28 15:10:24 +02:00
sanitizer_nolibc_test.cpp
sanitizer_nolibc_test_main.cpp
sanitizer_posix_test.cpp
sanitizer_printf_test.cpp sanitizer_common: support %l in format strings 2021-08-14 17:57:40 -07:00
sanitizer_procmaps_test.cpp sanitizer_common: fix ParseUnixMemoryProfile test linking on Mac 2021-10-29 16:26:24 +02:00
sanitizer_pthread_wrappers.h
sanitizer_quarantine_test.cpp
sanitizer_ring_buffer_test.cpp
sanitizer_stack_store_test.cpp [sanitizer] Hook up LZW into stack store 2021-12-03 23:38:41 -08:00
sanitizer_stackdepot_test.cpp Revert "[NFC][sanitizer] Disable a test with large stderr output" 2021-11-02 01:25:46 -07:00
sanitizer_stacktrace_printer_test.cpp [sanitizers] include build ids in stacks on linux. 2021-12-10 14:24:03 -08:00
sanitizer_stacktrace_test.cpp sanitizer_common: fix format strings 2021-08-13 13:44:41 +02:00
sanitizer_stoptheworld_test.cpp Port __sanitizer::StopTheWorld to Windows 2021-12-20 18:29:44 -08:00
sanitizer_stoptheworld_testlib.cpp
sanitizer_suppressions_test.cpp
sanitizer_symbolizer_test.cpp
sanitizer_test_config.h
sanitizer_test_main.cpp
sanitizer_test_utils.h [sanitizer] Defined SANITIZER_TEST_HAS_PVALLOC only on glibc 2020-12-27 21:33:41 -08:00
sanitizer_thread_registry_test.cpp sanitizers: switch BlockingMutex(LINKER_INITIALIZED) to Mutex 2021-07-28 15:09:34 +02:00
sanitizer_type_traits_test.cpp [sanitizer] Add a few of type_traits tools 2021-11-17 17:52:40 -08:00
sanitizer_vector_test.cpp
standalone_malloc_test.cpp