From 93c0f382b4a5e91cc5e2689687e85b5d898b7c10 Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Thu, 18 Aug 2016 10:50:46 +0000 Subject: [PATCH] [mips][msan] Fix all the XPASSes following r278793 and r278795 All msan tests are now passing for mipsel and mips64el except for allocator_mapping.cc which is marked unsupported. llvm-svn: 279048 --- compiler-rt/test/msan/Linux/cmsghdr.cc | 2 -- compiler-rt/test/msan/Linux/eventfd.cc | 2 -- compiler-rt/test/msan/Linux/fopencookie.cc | 2 -- compiler-rt/test/msan/Linux/forkpty.cc | 2 -- compiler-rt/test/msan/Linux/getresid.cc | 2 -- compiler-rt/test/msan/Linux/glob.cc | 2 -- compiler-rt/test/msan/Linux/glob_altdirfunc.cc | 2 -- compiler-rt/test/msan/Linux/glob_nomatch.cc | 2 -- compiler-rt/test/msan/Linux/ioctl_sound.cc | 2 -- compiler-rt/test/msan/Linux/mallinfo.cc | 2 -- compiler-rt/test/msan/Linux/mincore.cc | 2 -- compiler-rt/test/msan/Linux/obstack.cc | 2 -- compiler-rt/test/msan/Linux/process_vm_readv.cc | 2 -- compiler-rt/test/msan/Linux/sendmsg.cc | 2 -- compiler-rt/test/msan/Linux/sunrpc.cc | 2 -- compiler-rt/test/msan/Linux/sunrpc_bytes.cc | 2 -- compiler-rt/test/msan/Linux/sunrpc_string.cc | 2 -- compiler-rt/test/msan/Linux/syscalls.cc | 2 -- compiler-rt/test/msan/Linux/syscalls_sigaction.cc | 2 -- compiler-rt/test/msan/Linux/tcgetattr.cc | 2 -- compiler-rt/test/msan/Linux/xattr.cc | 2 -- compiler-rt/test/msan/allocator_returns_null.cc | 2 -- compiler-rt/test/msan/backtrace.cc | 2 -- compiler-rt/test/msan/c-strdup.c | 2 -- compiler-rt/test/msan/chained_origin.cc | 2 -- compiler-rt/test/msan/chained_origin_empty_stack.cc | 2 -- compiler-rt/test/msan/chained_origin_limits.cc | 2 -- compiler-rt/test/msan/chained_origin_memcpy.cc | 2 -- compiler-rt/test/msan/chained_origin_with_signals.cc | 2 -- compiler-rt/test/msan/check_mem_is_initialized.cc | 2 -- compiler-rt/test/msan/coverage-levels.cc | 2 -- compiler-rt/test/msan/ctermid.cc | 2 -- compiler-rt/test/msan/cxa_atexit.cc | 2 -- compiler-rt/test/msan/death-callback.cc | 2 -- compiler-rt/test/msan/dlerror.cc | 2 -- 35 files changed, 70 deletions(-) diff --git a/compiler-rt/test/msan/Linux/cmsghdr.cc b/compiler-rt/test/msan/Linux/cmsghdr.cc index d18415aa110a..daed1baad20d 100644 --- a/compiler-rt/test/msan/Linux/cmsghdr.cc +++ b/compiler-rt/test/msan/Linux/cmsghdr.cc @@ -10,8 +10,6 @@ // UNSUPPORTED: android -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/eventfd.cc b/compiler-rt/test/msan/Linux/eventfd.cc index 62e19b216400..4399211258ff 100644 --- a/compiler-rt/test/msan/Linux/eventfd.cc +++ b/compiler-rt/test/msan/Linux/eventfd.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t 2>&1 -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/Linux/fopencookie.cc b/compiler-rt/test/msan/Linux/fopencookie.cc index 551e891ce3b7..e5b8f936e0d2 100644 --- a/compiler-rt/test/msan/Linux/fopencookie.cc +++ b/compiler-rt/test/msan/Linux/fopencookie.cc @@ -2,8 +2,6 @@ // RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t // RUN: %clangxx_msan -std=c++11 -fsanitize-memory-track-origins -O0 %s -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/forkpty.cc b/compiler-rt/test/msan/Linux/forkpty.cc index 7a8094542d3d..d371a4948184 100644 --- a/compiler-rt/test/msan/Linux/forkpty.cc +++ b/compiler-rt/test/msan/Linux/forkpty.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -O0 -g %s -lutil -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/Linux/getresid.cc b/compiler-rt/test/msan/Linux/getresid.cc index 06e137406adb..f3c0914b52f5 100644 --- a/compiler-rt/test/msan/Linux/getresid.cc +++ b/compiler-rt/test/msan/Linux/getresid.cc @@ -2,8 +2,6 @@ // RUN: %clangxx_msan -O0 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t %p 2>&1 // RUN: %clangxx_msan -O3 %s -o %t && %run %t %p 2>&1 -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/Linux/glob.cc b/compiler-rt/test/msan/Linux/glob.cc index 50096c0229d5..1481861a08e0 100644 --- a/compiler-rt/test/msan/Linux/glob.cc +++ b/compiler-rt/test/msan/Linux/glob.cc @@ -2,8 +2,6 @@ // RUN: %clangxx_msan -O0 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t %p 2>&1 | FileCheck %s // RUN: %clangxx_msan -O3 %s -o %t && %run %t %p 2>&1 | FileCheck %s -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/glob_altdirfunc.cc b/compiler-rt/test/msan/Linux/glob_altdirfunc.cc index d0cb4bcdf804..cb7fe09cbc3d 100644 --- a/compiler-rt/test/msan/Linux/glob_altdirfunc.cc +++ b/compiler-rt/test/msan/Linux/glob_altdirfunc.cc @@ -2,8 +2,6 @@ // RUN: %clangxx_msan -O0 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t %p 2>&1 | FileCheck %s // RUN: %clangxx_msan -O3 %s -o %t && %run %t %p 2>&1 | FileCheck %s -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/glob_nomatch.cc b/compiler-rt/test/msan/Linux/glob_nomatch.cc index 584551389fd9..fa132c813727 100644 --- a/compiler-rt/test/msan/Linux/glob_nomatch.cc +++ b/compiler-rt/test/msan/Linux/glob_nomatch.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t %p // RUN: %clangxx_msan -O3 %s -o %t && %run %t %p -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/ioctl_sound.cc b/compiler-rt/test/msan/Linux/ioctl_sound.cc index d7b38fa71aba..fb36c52f2e7e 100644 --- a/compiler-rt/test/msan/Linux/ioctl_sound.cc +++ b/compiler-rt/test/msan/Linux/ioctl_sound.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t // RUN: %clangxx_msan -O3 -g %s -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/mallinfo.cc b/compiler-rt/test/msan/Linux/mallinfo.cc index 577a19385f3a..545ae934a611 100644 --- a/compiler-rt/test/msan/Linux/mallinfo.cc +++ b/compiler-rt/test/msan/Linux/mallinfo.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t // REQUIRES: stable-runtime -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/Linux/mincore.cc b/compiler-rt/test/msan/Linux/mincore.cc index a229d4b0bd0e..35f5713d4312 100644 --- a/compiler-rt/test/msan/Linux/mincore.cc +++ b/compiler-rt/test/msan/Linux/mincore.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/obstack.cc b/compiler-rt/test/msan/Linux/obstack.cc index f5b4fc303c3c..a042912cfa41 100644 --- a/compiler-rt/test/msan/Linux/obstack.cc +++ b/compiler-rt/test/msan/Linux/obstack.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t // RUN: %clangxx_msan -O0 -g -DPOSITIVE %s -o %t && not %run %t |& FileCheck %s -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/process_vm_readv.cc b/compiler-rt/test/msan/Linux/process_vm_readv.cc index 4c7cafa8108c..b61578d1bfda 100644 --- a/compiler-rt/test/msan/Linux/process_vm_readv.cc +++ b/compiler-rt/test/msan/Linux/process_vm_readv.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t // RUN: %clangxx_msan -std=c++11 -O0 %s -o %t -DPOSITIVE && not %run %t |& FileCheck %s -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/sendmsg.cc b/compiler-rt/test/msan/Linux/sendmsg.cc index e04559c55f4e..6a8ef83c118b 100644 --- a/compiler-rt/test/msan/Linux/sendmsg.cc +++ b/compiler-rt/test/msan/Linux/sendmsg.cc @@ -15,8 +15,6 @@ // UNSUPPORTED: android -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/sunrpc.cc b/compiler-rt/test/msan/Linux/sunrpc.cc index 8acb155ebe74..c92ad632c095 100644 --- a/compiler-rt/test/msan/Linux/sunrpc.cc +++ b/compiler-rt/test/msan/Linux/sunrpc.cc @@ -11,8 +11,6 @@ // RUN: %clangxx_msan -g -O0 -DTYPE=u_quad_t -DFN=xdr_u_longlong_t -DUNINIT=1 %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/Linux/sunrpc_bytes.cc b/compiler-rt/test/msan/Linux/sunrpc_bytes.cc index 4d46d55f0932..477637af2b63 100644 --- a/compiler-rt/test/msan/Linux/sunrpc_bytes.cc +++ b/compiler-rt/test/msan/Linux/sunrpc_bytes.cc @@ -3,8 +3,6 @@ // RUN: %clangxx_msan -g -O0 -DUNINIT=1 %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/sunrpc_string.cc b/compiler-rt/test/msan/Linux/sunrpc_string.cc index 53bea26eabf8..350222f5cc1e 100644 --- a/compiler-rt/test/msan/Linux/sunrpc_string.cc +++ b/compiler-rt/test/msan/Linux/sunrpc_string.cc @@ -3,8 +3,6 @@ // RUN: %clangxx_msan -g -O0 -DUNINIT=1 %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/syscalls.cc b/compiler-rt/test/msan/Linux/syscalls.cc index 1287486021d2..c5ac3e27fa11 100644 --- a/compiler-rt/test/msan/Linux/syscalls.cc +++ b/compiler-rt/test/msan/Linux/syscalls.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t 2>&1 // RUN: %clangxx_msan -O3 %s -o %t && %run %t 2>&1 -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/syscalls_sigaction.cc b/compiler-rt/test/msan/Linux/syscalls_sigaction.cc index 84e010e5b20c..1297fae13d12 100644 --- a/compiler-rt/test/msan/Linux/syscalls_sigaction.cc +++ b/compiler-rt/test/msan/Linux/syscalls_sigaction.cc @@ -3,8 +3,6 @@ // RUN: %clangxx_msan -DPRE3 -O0 %s -o %t && not %run %t 2>&1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t 2>&1 -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/tcgetattr.cc b/compiler-rt/test/msan/Linux/tcgetattr.cc index 7b6adbc7c046..454b7fd1537e 100644 --- a/compiler-rt/test/msan/Linux/tcgetattr.cc +++ b/compiler-rt/test/msan/Linux/tcgetattr.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t %p -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/Linux/xattr.cc b/compiler-rt/test/msan/Linux/xattr.cc index bead65164f9a..86cc2cd474d5 100644 --- a/compiler-rt/test/msan/Linux/xattr.cc +++ b/compiler-rt/test/msan/Linux/xattr.cc @@ -2,8 +2,6 @@ // RUN: %clangxx_msan -O0 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t %p 2>&1 // RUN: %clangxx_msan -O3 %s -o %t && %run %t %p 2>&1 -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/allocator_returns_null.cc b/compiler-rt/test/msan/allocator_returns_null.cc index c47dc2e36ef1..f4ea51d58872 100644 --- a/compiler-rt/test/msan/allocator_returns_null.cc +++ b/compiler-rt/test/msan/allocator_returns_null.cc @@ -15,8 +15,6 @@ // RUN: MSAN_OPTIONS=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrCRASH // RUN: MSAN_OPTIONS=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 | FileCheck %s --check-prefix=CHECK-mrNULL -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/backtrace.cc b/compiler-rt/test/msan/backtrace.cc index a4dd69b9ddaa..9cb883c5cf7d 100644 --- a/compiler-rt/test/msan/backtrace.cc +++ b/compiler-rt/test/msan/backtrace.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/c-strdup.c b/compiler-rt/test/msan/c-strdup.c index 4a121cb28bed..b1e02b914fcd 100644 --- a/compiler-rt/test/msan/c-strdup.c +++ b/compiler-rt/test/msan/c-strdup.c @@ -3,8 +3,6 @@ // RUN: %clang_msan -O2 %s -o %t && %run %t >%t.out 2>&1 // RUN: %clang_msan -O3 %s -o %t && %run %t >%t.out 2>&1 -// XFAIL: target-is-mips64el - // Test that strdup in C programs is intercepted. // GLibC headers translate strdup to __strdup at -O1 and higher. diff --git a/compiler-rt/test/msan/chained_origin.cc b/compiler-rt/test/msan/chained_origin.cc index 9b30c74c8006..0918f436bd2e 100644 --- a/compiler-rt/test/msan/chained_origin.cc +++ b/compiler-rt/test/msan/chained_origin.cc @@ -15,8 +15,6 @@ // RUN: not %run %t >%t.out 2>&1 // RUN: FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-HEAP < %t.out -// XFAIL: target-is-mips64el - #include volatile int x, y; diff --git a/compiler-rt/test/msan/chained_origin_empty_stack.cc b/compiler-rt/test/msan/chained_origin_empty_stack.cc index 0a5a9c3bf05e..f1ed66b75e42 100644 --- a/compiler-rt/test/msan/chained_origin_empty_stack.cc +++ b/compiler-rt/test/msan/chained_origin_empty_stack.cc @@ -1,8 +1,6 @@ // RUN: %clangxx_msan -fsanitize-memory-track-origins=2 -O3 %s -o %t && \ // RUN: MSAN_OPTIONS=store_context_size=1 not %run %t 2>&1 | FileCheck %s -// XFAIL: target-is-mips64el - // Test that stack trace for the intermediate store is not empty. // CHECK: MemorySanitizer: use-of-uninitialized-value diff --git a/compiler-rt/test/msan/chained_origin_limits.cc b/compiler-rt/test/msan/chained_origin_limits.cc index 0f97c119545c..90fd09a86b29 100644 --- a/compiler-rt/test/msan/chained_origin_limits.cc +++ b/compiler-rt/test/msan/chained_origin_limits.cc @@ -62,8 +62,6 @@ // RUN: MSAN_OPTIONS=origin_history_size=7,origin_history_per_stack_limit=0 not %run %t >%t.out 2>&1 // RUN: FileCheck %s --check-prefix=CHECK7 < %t.out -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/chained_origin_memcpy.cc b/compiler-rt/test/msan/chained_origin_memcpy.cc index 07474fb28f85..afb4cec6abcb 100644 --- a/compiler-rt/test/msan/chained_origin_memcpy.cc +++ b/compiler-rt/test/msan/chained_origin_memcpy.cc @@ -15,8 +15,6 @@ // RUN: not %run %t >%t.out 2>&1 // RUN: FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-Z2 < %t.out -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/chained_origin_with_signals.cc b/compiler-rt/test/msan/chained_origin_with_signals.cc index e3719825a5fb..43dbdcca76a9 100644 --- a/compiler-rt/test/msan/chained_origin_with_signals.cc +++ b/compiler-rt/test/msan/chained_origin_with_signals.cc @@ -10,8 +10,6 @@ // RUN: not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/check_mem_is_initialized.cc b/compiler-rt/test/msan/check_mem_is_initialized.cc index 461ce19746c2..e1d3b117e42f 100644 --- a/compiler-rt/test/msan/check_mem_is_initialized.cc +++ b/compiler-rt/test/msan/check_mem_is_initialized.cc @@ -16,8 +16,6 @@ // RUN: %clangxx_msan -fsanitize-memory-track-origins -O3 %s -o %t && not %run %t >%t.out 2>&1 // RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-ORIGINS < %t.out -// XFAIL: target-is-mips64el - #include #include diff --git a/compiler-rt/test/msan/coverage-levels.cc b/compiler-rt/test/msan/coverage-levels.cc index 43b03e3d98d3..b881cecac7e9 100644 --- a/compiler-rt/test/msan/coverage-levels.cc +++ b/compiler-rt/test/msan/coverage-levels.cc @@ -10,8 +10,6 @@ // RUN: %clangxx_msan -O1 -fsanitize-coverage=edge %s -o %t // RUN: MSAN_OPTIONS=coverage=1:verbosity=1:coverage_dir=%T/coverage-levels not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK3 --check-prefix=CHECK_WARN -// XFAIL: target-is-mips64el - volatile int sink; int main(int argc, char **argv) { int var; diff --git a/compiler-rt/test/msan/ctermid.cc b/compiler-rt/test/msan/ctermid.cc index e91ea71a40b5..a2818e630686 100644 --- a/compiler-rt/test/msan/ctermid.cc +++ b/compiler-rt/test/msan/ctermid.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/cxa_atexit.cc b/compiler-rt/test/msan/cxa_atexit.cc index 8210436a4e17..70384b9c93f8 100644 --- a/compiler-rt/test/msan/cxa_atexit.cc +++ b/compiler-rt/test/msan/cxa_atexit.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t %p -// XFAIL: target-is-mips64el - // PR17377: C++ module destructors get stale argument shadow. #include diff --git a/compiler-rt/test/msan/death-callback.cc b/compiler-rt/test/msan/death-callback.cc index 9aeac5b87041..08cf2911b0f9 100644 --- a/compiler-rt/test/msan/death-callback.cc +++ b/compiler-rt/test/msan/death-callback.cc @@ -7,8 +7,6 @@ // RUN: %clangxx_msan -DMSANCB_SET %s -o %t && %run %t 2>&1 | \ // RUN: FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-NOCB -// XFAIL: target-is-mips64el - #include #include #include diff --git a/compiler-rt/test/msan/dlerror.cc b/compiler-rt/test/msan/dlerror.cc index d0335d9dd5cb..d5510b65c4a5 100644 --- a/compiler-rt/test/msan/dlerror.cc +++ b/compiler-rt/test/msan/dlerror.cc @@ -1,7 +1,5 @@ // RUN: %clangxx_msan -O0 %s -o %t && %run %t -// XFAIL: target-is-mips64el - #include #include #include