From 2874f70250286e581c3b15be0f1f8ad3b9e86aa5 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 6 Jun 2013 09:23:34 +0000 Subject: [PATCH] [ASan] move all lit_tests under TestCases llvm-svn: 183395 --- .../lit_tests/{ => TestCases}/Darwin/interface_symbols_darwin.c | 2 +- .../lib/asan/lit_tests/{ => TestCases}/Darwin/lit.local.cfg | 0 .../{ => TestCases}/Darwin/reexec-insert-libraries-env.cc | 0 .../{ => TestCases}/Darwin/unset-insert-libraries-on-exec.cc | 0 .../asan/lit_tests/{ => TestCases}/Helpers/blacklist-extra.cc | 0 .../{ => TestCases}/Helpers/init-order-atexit-extra.cc | 0 .../{ => TestCases}/Helpers/initialization-blacklist-extra.cc | 0 .../{ => TestCases}/Helpers/initialization-blacklist-extra2.cc | 0 .../{ => TestCases}/Helpers/initialization-blacklist.txt | 0 .../{ => TestCases}/Helpers/initialization-bug-extra.cc | 0 .../{ => TestCases}/Helpers/initialization-bug-extra2.cc | 0 .../{ => TestCases}/Helpers/initialization-constexpr-extra.cc | 0 .../{ => TestCases}/Helpers/initialization-nobug-extra.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/Helpers/lit.local.cfg | 0 .../asan/lit_tests/{ => TestCases}/Linux/asan_prelink_test.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/clone_test.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/glob.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/glob_test_root/aa | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/glob_test_root/ab | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/glob_test_root/ba | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/heavy_uar_test.cc | 0 .../{ => TestCases}/Linux/initialization-bug-any-order.cc | 0 .../{ => TestCases}/Linux/interception_failure_test.cc | 0 .../lit_tests/{ => TestCases}/Linux/interception_malloc_test.cc | 0 .../asan/lit_tests/{ => TestCases}/Linux/interception_test.cc | 0 .../lit_tests/{ => TestCases}/Linux/interface_symbols_linux.c | 2 +- .../lib/asan/lit_tests/{ => TestCases}/Linux/lit.local.cfg | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/malloc-in-qsort.cc | 0 .../lit_tests/{ => TestCases}/Linux/malloc_delete_mismatch.cc | 0 .../asan/lit_tests/{ => TestCases}/Linux/overflow-in-qsort.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/preinit_test.cc | 0 .../asan/lit_tests/{ => TestCases}/Linux/rlimit_mmap_test.cc | 0 .../asan/lit_tests/{ => TestCases}/Linux/swapcontext_test.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/syscalls.cc | 0 .../asan/lit_tests/{ => TestCases}/Linux/time_null_regtest.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/Linux/unpoison_tls.cc | 0 .../asan/lit_tests/{ => TestCases}/Linux/zero-base-shadow.cc | 0 .../{ => TestCases}/SharedLibs/darwin-dummy-shared-lib-so.cc | 0 .../lit_tests/{ => TestCases}/SharedLibs/dlclose-test-so.cc | 0 .../{ => TestCases}/SharedLibs/init-order-dlopen-so.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/SharedLibs/lit.local.cfg | 0 .../lit_tests/{ => TestCases}/SharedLibs/shared-lib-test-so.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/allow_user_segv.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/blacklist.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/deep_stack_uaf.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/deep_tail_call.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/deep_thread_stack.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/default_blacklist.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/default_options.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/dlclose-test.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/double-free.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/force_inline_opt0.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/free_hook_realloc.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/global-demangle.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/global-overflow.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/heap-overflow.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/huge_negative_hea_oob.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/init-order-atexit.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/init-order-dlopen.cc | 0 .../asan/lit_tests/{ => TestCases}/initialization-blacklist.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/initialization-bug.cc | 0 .../asan/lit_tests/{ => TestCases}/initialization-constexpr.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/initialization-nobug.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/interface_test.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/invalid-free.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/large_func_test.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/log-path_test.cc | 0 .../lit_tests/{ => TestCases}/log_path_fork_test.cc.disabled | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/malloc_fill.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/malloc_hook.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/memcmp_strict_test.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/memcmp_test.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/null_deref.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/on_error_callback.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/partial_right.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/sanity_check_pure_c.c | 0 .../lib/asan/lit_tests/{ => TestCases}/shared-lib-test.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/sleep_before_dying.c | 0 .../lib/asan/lit_tests/{ => TestCases}/stack-frame-demangle.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/stack-oob-frames.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/stack-overflow.cc | 0 .../asan/lit_tests/{ => TestCases}/stack-use-after-return.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/strip_path_prefix.c | 0 .../lib/asan/lit_tests/{ => TestCases}/strncpy-overflow.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/symbolize_callback.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/throw_call_test.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/throw_invoke_test.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/time_interceptor.cc | 0 .../lit_tests/{ => TestCases}/unaligned_loads_and_stores.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/use-after-free-right.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/use-after-free.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/use-after-poison.cc | 0 .../lit_tests/{ => TestCases}/use-after-scope-dtor-order.cc | 0 .../asan/lit_tests/{ => TestCases}/use-after-scope-inlined.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/use-after-scope-nobug.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/use-after-scope-temp.cc | 0 .../lib/asan/lit_tests/{ => TestCases}/use-after-scope.cc | 0 compiler-rt/lib/asan/lit_tests/{ => TestCases}/wait.cc | 0 compiler-rt/lib/asan/lit_tests/lit.cfg | 2 +- compiler-rt/lib/asan/lit_tests/lit.site.cfg.in | 1 + 100 files changed, 4 insertions(+), 3 deletions(-) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Darwin/interface_symbols_darwin.c (96%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Darwin/lit.local.cfg (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Darwin/reexec-insert-libraries-env.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Darwin/unset-insert-libraries-on-exec.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/blacklist-extra.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/init-order-atexit-extra.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-blacklist-extra.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-blacklist-extra2.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-blacklist.txt (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-bug-extra.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-bug-extra2.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-constexpr-extra.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/initialization-nobug-extra.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Helpers/lit.local.cfg (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/asan_prelink_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/clone_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/glob.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/glob_test_root/aa (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/glob_test_root/ab (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/glob_test_root/ba (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/heavy_uar_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/initialization-bug-any-order.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/interception_failure_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/interception_malloc_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/interception_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/interface_symbols_linux.c (96%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/lit.local.cfg (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/malloc-in-qsort.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/malloc_delete_mismatch.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/overflow-in-qsort.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/preinit_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/rlimit_mmap_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/swapcontext_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/syscalls.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/time_null_regtest.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/unpoison_tls.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/Linux/zero-base-shadow.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/SharedLibs/darwin-dummy-shared-lib-so.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/SharedLibs/dlclose-test-so.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/SharedLibs/init-order-dlopen-so.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/SharedLibs/lit.local.cfg (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/SharedLibs/shared-lib-test-so.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/allow_user_segv.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/blacklist.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/deep_stack_uaf.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/deep_tail_call.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/deep_thread_stack.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/default_blacklist.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/default_options.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/dlclose-test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/double-free.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/force_inline_opt0.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/free_hook_realloc.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/global-demangle.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/global-overflow.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/heap-overflow.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/huge_negative_hea_oob.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/init-order-atexit.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/init-order-dlopen.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/initialization-blacklist.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/initialization-bug.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/initialization-constexpr.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/initialization-nobug.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/interface_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/invalid-free.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/large_func_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/log-path_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/log_path_fork_test.cc.disabled (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/malloc_fill.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/malloc_hook.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/memcmp_strict_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/memcmp_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/null_deref.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/on_error_callback.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/partial_right.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/sanity_check_pure_c.c (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/shared-lib-test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/sleep_before_dying.c (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/stack-frame-demangle.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/stack-oob-frames.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/stack-overflow.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/stack-use-after-return.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/strip_path_prefix.c (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/strncpy-overflow.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/symbolize_callback.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/throw_call_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/throw_invoke_test.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/time_interceptor.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/unaligned_loads_and_stores.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-free-right.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-free.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-poison.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-scope-dtor-order.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-scope-inlined.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-scope-nobug.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-scope-temp.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/use-after-scope.cc (100%) rename compiler-rt/lib/asan/lit_tests/{ => TestCases}/wait.cc (100%) diff --git a/compiler-rt/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c b/compiler-rt/lib/asan/lit_tests/TestCases/Darwin/interface_symbols_darwin.c similarity index 96% rename from compiler-rt/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c rename to compiler-rt/lib/asan/lit_tests/TestCases/Darwin/interface_symbols_darwin.c index 3fca6e915324..85bf7a5e02cd 100644 --- a/compiler-rt/lib/asan/lit_tests/Darwin/interface_symbols_darwin.c +++ b/compiler-rt/lib/asan/lit_tests/TestCases/Darwin/interface_symbols_darwin.c @@ -16,7 +16,7 @@ // RUN: | grep -v "__asan_default_options" \ // RUN: | grep -v "__asan_on_error" > %t.symbols -// RUN: cat %p/../../asan_interface_internal.h \ +// RUN: cat %p/../../../asan_interface_internal.h \ // RUN: | sed "s/\/\/.*//" | sed "s/typedef.*//" \ // RUN: | grep -v "OPTIONAL" \ // RUN: | grep "__asan_.*(" | sed "s/.* __asan_/__asan_/;s/(.*//" \ diff --git a/compiler-rt/lib/asan/lit_tests/Darwin/lit.local.cfg b/compiler-rt/lib/asan/lit_tests/TestCases/Darwin/lit.local.cfg similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Darwin/lit.local.cfg rename to compiler-rt/lib/asan/lit_tests/TestCases/Darwin/lit.local.cfg diff --git a/compiler-rt/lib/asan/lit_tests/Darwin/reexec-insert-libraries-env.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Darwin/reexec-insert-libraries-env.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Darwin/reexec-insert-libraries-env.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Darwin/reexec-insert-libraries-env.cc diff --git a/compiler-rt/lib/asan/lit_tests/Darwin/unset-insert-libraries-on-exec.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Darwin/unset-insert-libraries-on-exec.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Darwin/unset-insert-libraries-on-exec.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/blacklist-extra.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/blacklist-extra.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/blacklist-extra.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/blacklist-extra.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/init-order-atexit-extra.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/init-order-atexit-extra.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/init-order-atexit-extra.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/init-order-atexit-extra.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-blacklist-extra.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-blacklist-extra.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-blacklist-extra2.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra2.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-blacklist-extra2.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist-extra2.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-blacklist.txt b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist.txt similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-blacklist.txt rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-blacklist.txt diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-bug-extra.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-bug-extra.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-bug-extra2.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra2.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-bug-extra2.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-bug-extra2.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-constexpr-extra.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-constexpr-extra.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-constexpr-extra.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-constexpr-extra.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/initialization-nobug-extra.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-nobug-extra.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/initialization-nobug-extra.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/initialization-nobug-extra.cc diff --git a/compiler-rt/lib/asan/lit_tests/Helpers/lit.local.cfg b/compiler-rt/lib/asan/lit_tests/TestCases/Helpers/lit.local.cfg similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Helpers/lit.local.cfg rename to compiler-rt/lib/asan/lit_tests/TestCases/Helpers/lit.local.cfg diff --git a/compiler-rt/lib/asan/lit_tests/Linux/asan_prelink_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/asan_prelink_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/asan_prelink_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/asan_prelink_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/clone_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/clone_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/clone_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/clone_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/glob.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/glob.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/glob_test_root/aa b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/aa similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/glob_test_root/aa rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/aa diff --git a/compiler-rt/lib/asan/lit_tests/Linux/glob_test_root/ab b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ab similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/glob_test_root/ab rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ab diff --git a/compiler-rt/lib/asan/lit_tests/Linux/glob_test_root/ba b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ba similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/glob_test_root/ba rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/glob_test_root/ba diff --git a/compiler-rt/lib/asan/lit_tests/Linux/heavy_uar_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/heavy_uar_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/heavy_uar_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/initialization-bug-any-order.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/initialization-bug-any-order.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/initialization-bug-any-order.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/interception_failure_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_failure_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/interception_failure_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_failure_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/interception_malloc_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/interception_malloc_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_malloc_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/interception_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/interception_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/interception_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/interface_symbols_linux.c b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/interface_symbols_linux.c similarity index 96% rename from compiler-rt/lib/asan/lit_tests/Linux/interface_symbols_linux.c rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/interface_symbols_linux.c index 4134c8744043..b5cfa09a1e31 100644 --- a/compiler-rt/lib/asan/lit_tests/Linux/interface_symbols_linux.c +++ b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/interface_symbols_linux.c @@ -8,7 +8,7 @@ // RUN: | grep -v "__asan_symbolize" \ // RUN: | grep -v "__asan_default_options" \ // RUN: | grep -v "__asan_on_error" > %t.symbols -// RUN: cat %p/../../asan_interface_internal.h \ +// RUN: cat %p/../../../asan_interface_internal.h \ // RUN: | sed "s/\/\/.*//" | sed "s/typedef.*//" \ // RUN: | grep -v "OPTIONAL" \ // RUN: | grep "__asan_.*(" | sed "s/.* __asan_/__asan_/;s/(.*//" \ diff --git a/compiler-rt/lib/asan/lit_tests/Linux/lit.local.cfg b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/lit.local.cfg similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/lit.local.cfg rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/lit.local.cfg diff --git a/compiler-rt/lib/asan/lit_tests/Linux/malloc-in-qsort.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/malloc-in-qsort.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc-in-qsort.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/malloc_delete_mismatch.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/malloc_delete_mismatch.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/malloc_delete_mismatch.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/overflow-in-qsort.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/overflow-in-qsort.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/overflow-in-qsort.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/preinit_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/preinit_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/preinit_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/preinit_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/rlimit_mmap_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/rlimit_mmap_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/rlimit_mmap_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/swapcontext_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/swapcontext_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/swapcontext_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/swapcontext_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/syscalls.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/syscalls.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/syscalls.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/syscalls.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/time_null_regtest.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/time_null_regtest.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/time_null_regtest.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/time_null_regtest.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/unpoison_tls.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/unpoison_tls.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/unpoison_tls.cc diff --git a/compiler-rt/lib/asan/lit_tests/Linux/zero-base-shadow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/Linux/zero-base-shadow.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/Linux/zero-base-shadow.cc diff --git a/compiler-rt/lib/asan/lit_tests/SharedLibs/darwin-dummy-shared-lib-so.cc b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/SharedLibs/darwin-dummy-shared-lib-so.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/darwin-dummy-shared-lib-so.cc diff --git a/compiler-rt/lib/asan/lit_tests/SharedLibs/dlclose-test-so.cc b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/SharedLibs/dlclose-test-so.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc diff --git a/compiler-rt/lib/asan/lit_tests/SharedLibs/init-order-dlopen-so.cc b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/SharedLibs/init-order-dlopen-so.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/init-order-dlopen-so.cc diff --git a/compiler-rt/lib/asan/lit_tests/SharedLibs/lit.local.cfg b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/lit.local.cfg similarity index 100% rename from compiler-rt/lib/asan/lit_tests/SharedLibs/lit.local.cfg rename to compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/lit.local.cfg diff --git a/compiler-rt/lib/asan/lit_tests/SharedLibs/shared-lib-test-so.cc b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/SharedLibs/shared-lib-test-so.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/shared-lib-test-so.cc diff --git a/compiler-rt/lib/asan/lit_tests/allow_user_segv.cc b/compiler-rt/lib/asan/lit_tests/TestCases/allow_user_segv.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/allow_user_segv.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/allow_user_segv.cc diff --git a/compiler-rt/lib/asan/lit_tests/blacklist.cc b/compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/blacklist.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/blacklist.cc diff --git a/compiler-rt/lib/asan/lit_tests/deep_stack_uaf.cc b/compiler-rt/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/deep_stack_uaf.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/deep_stack_uaf.cc diff --git a/compiler-rt/lib/asan/lit_tests/deep_tail_call.cc b/compiler-rt/lib/asan/lit_tests/TestCases/deep_tail_call.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/deep_tail_call.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/deep_tail_call.cc diff --git a/compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc b/compiler-rt/lib/asan/lit_tests/TestCases/deep_thread_stack.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/deep_thread_stack.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/deep_thread_stack.cc diff --git a/compiler-rt/lib/asan/lit_tests/default_blacklist.cc b/compiler-rt/lib/asan/lit_tests/TestCases/default_blacklist.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/default_blacklist.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/default_blacklist.cc diff --git a/compiler-rt/lib/asan/lit_tests/default_options.cc b/compiler-rt/lib/asan/lit_tests/TestCases/default_options.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/default_options.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/default_options.cc diff --git a/compiler-rt/lib/asan/lit_tests/dlclose-test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/dlclose-test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/dlclose-test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/dlclose-test.cc diff --git a/compiler-rt/lib/asan/lit_tests/double-free.cc b/compiler-rt/lib/asan/lit_tests/TestCases/double-free.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/double-free.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/double-free.cc diff --git a/compiler-rt/lib/asan/lit_tests/force_inline_opt0.cc b/compiler-rt/lib/asan/lit_tests/TestCases/force_inline_opt0.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/force_inline_opt0.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/force_inline_opt0.cc diff --git a/compiler-rt/lib/asan/lit_tests/free_hook_realloc.cc b/compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/free_hook_realloc.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/free_hook_realloc.cc diff --git a/compiler-rt/lib/asan/lit_tests/global-demangle.cc b/compiler-rt/lib/asan/lit_tests/TestCases/global-demangle.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/global-demangle.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/global-demangle.cc diff --git a/compiler-rt/lib/asan/lit_tests/global-overflow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/global-overflow.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/global-overflow.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/global-overflow.cc diff --git a/compiler-rt/lib/asan/lit_tests/heap-overflow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/heap-overflow.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/heap-overflow.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/heap-overflow.cc diff --git a/compiler-rt/lib/asan/lit_tests/huge_negative_hea_oob.cc b/compiler-rt/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/huge_negative_hea_oob.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/huge_negative_hea_oob.cc diff --git a/compiler-rt/lib/asan/lit_tests/init-order-atexit.cc b/compiler-rt/lib/asan/lit_tests/TestCases/init-order-atexit.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/init-order-atexit.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/init-order-atexit.cc diff --git a/compiler-rt/lib/asan/lit_tests/init-order-dlopen.cc b/compiler-rt/lib/asan/lit_tests/TestCases/init-order-dlopen.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/init-order-dlopen.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/init-order-dlopen.cc diff --git a/compiler-rt/lib/asan/lit_tests/initialization-blacklist.cc b/compiler-rt/lib/asan/lit_tests/TestCases/initialization-blacklist.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/initialization-blacklist.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/initialization-blacklist.cc diff --git a/compiler-rt/lib/asan/lit_tests/initialization-bug.cc b/compiler-rt/lib/asan/lit_tests/TestCases/initialization-bug.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/initialization-bug.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/initialization-bug.cc diff --git a/compiler-rt/lib/asan/lit_tests/initialization-constexpr.cc b/compiler-rt/lib/asan/lit_tests/TestCases/initialization-constexpr.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/initialization-constexpr.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/initialization-constexpr.cc diff --git a/compiler-rt/lib/asan/lit_tests/initialization-nobug.cc b/compiler-rt/lib/asan/lit_tests/TestCases/initialization-nobug.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/initialization-nobug.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/initialization-nobug.cc diff --git a/compiler-rt/lib/asan/lit_tests/interface_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/interface_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/interface_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/interface_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/invalid-free.cc b/compiler-rt/lib/asan/lit_tests/TestCases/invalid-free.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/invalid-free.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/invalid-free.cc diff --git a/compiler-rt/lib/asan/lit_tests/large_func_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/large_func_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/large_func_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/large_func_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/log-path_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/log-path_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/log-path_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/log-path_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/log_path_fork_test.cc.disabled b/compiler-rt/lib/asan/lit_tests/TestCases/log_path_fork_test.cc.disabled similarity index 100% rename from compiler-rt/lib/asan/lit_tests/log_path_fork_test.cc.disabled rename to compiler-rt/lib/asan/lit_tests/TestCases/log_path_fork_test.cc.disabled diff --git a/compiler-rt/lib/asan/lit_tests/malloc_fill.cc b/compiler-rt/lib/asan/lit_tests/TestCases/malloc_fill.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/malloc_fill.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/malloc_fill.cc diff --git a/compiler-rt/lib/asan/lit_tests/malloc_hook.cc b/compiler-rt/lib/asan/lit_tests/TestCases/malloc_hook.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/malloc_hook.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/malloc_hook.cc diff --git a/compiler-rt/lib/asan/lit_tests/memcmp_strict_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/memcmp_strict_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/memcmp_strict_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/memcmp_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/memcmp_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/null_deref.cc b/compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/null_deref.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc diff --git a/compiler-rt/lib/asan/lit_tests/on_error_callback.cc b/compiler-rt/lib/asan/lit_tests/TestCases/on_error_callback.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/on_error_callback.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/on_error_callback.cc diff --git a/compiler-rt/lib/asan/lit_tests/partial_right.cc b/compiler-rt/lib/asan/lit_tests/TestCases/partial_right.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/partial_right.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/partial_right.cc diff --git a/compiler-rt/lib/asan/lit_tests/sanity_check_pure_c.c b/compiler-rt/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c similarity index 100% rename from compiler-rt/lib/asan/lit_tests/sanity_check_pure_c.c rename to compiler-rt/lib/asan/lit_tests/TestCases/sanity_check_pure_c.c diff --git a/compiler-rt/lib/asan/lit_tests/shared-lib-test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/shared-lib-test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/shared-lib-test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/shared-lib-test.cc diff --git a/compiler-rt/lib/asan/lit_tests/sleep_before_dying.c b/compiler-rt/lib/asan/lit_tests/TestCases/sleep_before_dying.c similarity index 100% rename from compiler-rt/lib/asan/lit_tests/sleep_before_dying.c rename to compiler-rt/lib/asan/lit_tests/TestCases/sleep_before_dying.c diff --git a/compiler-rt/lib/asan/lit_tests/stack-frame-demangle.cc b/compiler-rt/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/stack-frame-demangle.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/stack-frame-demangle.cc diff --git a/compiler-rt/lib/asan/lit_tests/stack-oob-frames.cc b/compiler-rt/lib/asan/lit_tests/TestCases/stack-oob-frames.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/stack-oob-frames.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/stack-oob-frames.cc diff --git a/compiler-rt/lib/asan/lit_tests/stack-overflow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/stack-overflow.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/stack-overflow.cc diff --git a/compiler-rt/lib/asan/lit_tests/stack-use-after-return.cc b/compiler-rt/lib/asan/lit_tests/TestCases/stack-use-after-return.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/stack-use-after-return.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/stack-use-after-return.cc diff --git a/compiler-rt/lib/asan/lit_tests/strip_path_prefix.c b/compiler-rt/lib/asan/lit_tests/TestCases/strip_path_prefix.c similarity index 100% rename from compiler-rt/lib/asan/lit_tests/strip_path_prefix.c rename to compiler-rt/lib/asan/lit_tests/TestCases/strip_path_prefix.c diff --git a/compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc b/compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/strncpy-overflow.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/strncpy-overflow.cc diff --git a/compiler-rt/lib/asan/lit_tests/symbolize_callback.cc b/compiler-rt/lib/asan/lit_tests/TestCases/symbolize_callback.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/symbolize_callback.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/symbolize_callback.cc diff --git a/compiler-rt/lib/asan/lit_tests/throw_call_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/throw_call_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/throw_call_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/throw_call_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/throw_invoke_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/throw_invoke_test.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/throw_invoke_test.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/throw_invoke_test.cc diff --git a/compiler-rt/lib/asan/lit_tests/time_interceptor.cc b/compiler-rt/lib/asan/lit_tests/TestCases/time_interceptor.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/time_interceptor.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/time_interceptor.cc diff --git a/compiler-rt/lib/asan/lit_tests/unaligned_loads_and_stores.cc b/compiler-rt/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/unaligned_loads_and_stores.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/unaligned_loads_and_stores.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-free-right.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-free-right.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-free-right.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-free-right.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-free.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-free.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-free.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-free.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-poison.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-poison.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-poison.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-poison.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-scope-dtor-order.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-scope-dtor-order.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-dtor-order.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-scope-inlined.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-scope-inlined.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-inlined.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-scope-nobug.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-nobug.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-scope-nobug.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-nobug.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-scope-temp.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-temp.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-scope-temp.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope-temp.cc diff --git a/compiler-rt/lib/asan/lit_tests/use-after-scope.cc b/compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/use-after-scope.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/use-after-scope.cc diff --git a/compiler-rt/lib/asan/lit_tests/wait.cc b/compiler-rt/lib/asan/lit_tests/TestCases/wait.cc similarity index 100% rename from compiler-rt/lib/asan/lit_tests/wait.cc rename to compiler-rt/lib/asan/lit_tests/TestCases/wait.cc diff --git a/compiler-rt/lib/asan/lit_tests/lit.cfg b/compiler-rt/lib/asan/lit_tests/lit.cfg index 5daecd9e557d..d8dac43a4c77 100644 --- a/compiler-rt/lib/asan/lit_tests/lit.cfg +++ b/compiler-rt/lib/asan/lit_tests/lit.cfg @@ -77,7 +77,7 @@ if llvm_tools_dir: # Setup path to symbolizer script. # FIXME: Instead we should copy this script to the build tree and point # at it there. -asan_source_dir = os.path.join(config.test_source_root, "..") +asan_source_dir = get_required_attr(config, "asan_source_dir") symbolizer = os.path.join(asan_source_dir, 'scripts', 'asan_symbolize.py') if not os.path.exists(symbolizer): diff --git a/compiler-rt/lib/asan/lit_tests/lit.site.cfg.in b/compiler-rt/lib/asan/lit_tests/lit.site.cfg.in index 08546cdabe02..528412246f3d 100644 --- a/compiler-rt/lib/asan/lit_tests/lit.site.cfg.in +++ b/compiler-rt/lib/asan/lit_tests/lit.site.cfg.in @@ -9,6 +9,7 @@ config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@" config.llvm_tools_dir = "@LLVM_TOOLS_DIR@" config.clang = "@LLVM_BINARY_DIR@/bin/clang" config.compiler_rt_arch = "@COMPILER_RT_SUPPORTED_ARCH@" +config.asan_source_dir = "@ASAN_SOURCE_DIR@" # LLVM tools dir can be passed in lit parameters, so try to # apply substitution.