summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Fitzgerald <gregf@codeaurora.org>2014-05-29 23:34:39 +0000
committerGreg Fitzgerald <gregf@codeaurora.org>2014-05-29 23:34:39 +0000
commitc5fd7305cb7ec7f4ea5a75c075ec64eef94a0eec (patch)
treec76a5873c6172232d87ce07c167eadb28bf4c02d
parentfdc0e0b47830aa6fd16eecfab2c6dc8357b8b03c (diff)
downloadbcm5719-llvm-c5fd7305cb7ec7f4ea5a75c075ec64eef94a0eec.tar.gz
bcm5719-llvm-c5fd7305cb7ec7f4ea5a75c075ec64eef94a0eec.zip
Mark unstable tests as Unsupported on ARM
This is half the patch from: http://reviews.llvm.org/D3857 It lets us get deterministic results from the rest of the test suite. llvm-svn: 209861
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/uar_signals.cc1
-rw-r--r--compiler-rt/test/asan/TestCases/current_allocated_bytes.cc1
-rw-r--r--compiler-rt/test/asan/TestCases/deep_thread_stack.cc1
-rw-r--r--compiler-rt/test/asan/lit.cfg5
4 files changed, 8 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/uar_signals.cc b/compiler-rt/test/asan/TestCases/Linux/uar_signals.cc
index 94e603a4990..f42c3f66655 100644
--- a/compiler-rt/test/asan/TestCases/Linux/uar_signals.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/uar_signals.cc
@@ -1,6 +1,7 @@
// This test checks that the implementation of use-after-return
// is async-signal-safe.
// RUN: %clangxx_asan -O1 %s -o %t -pthread && %run %t
+// REQUIRES: stable-runtime
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/compiler-rt/test/asan/TestCases/current_allocated_bytes.cc b/compiler-rt/test/asan/TestCases/current_allocated_bytes.cc
index 413d1a21547..1dcb1013c58 100644
--- a/compiler-rt/test/asan/TestCases/current_allocated_bytes.cc
+++ b/compiler-rt/test/asan/TestCases/current_allocated_bytes.cc
@@ -1,5 +1,6 @@
// RUN: %clangxx_asan -O0 %s -pthread -o %t && %run %t
// RUN: %clangxx_asan -O2 %s -pthread -o %t && %run %t
+// REQUIRES: stable-runtime
#include <assert.h>
#include <pthread.h>
diff --git a/compiler-rt/test/asan/TestCases/deep_thread_stack.cc b/compiler-rt/test/asan/TestCases/deep_thread_stack.cc
index 23c8bc88fb0..535da79ff58 100644
--- a/compiler-rt/test/asan/TestCases/deep_thread_stack.cc
+++ b/compiler-rt/test/asan/TestCases/deep_thread_stack.cc
@@ -2,6 +2,7 @@
// RUN: %clangxx_asan -O1 %s -pthread -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O2 %s -pthread -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O3 %s -pthread -o %t && not %run %t 2>&1 | FileCheck %s
+// REQUIRES: stable-runtime
#include <pthread.h>
diff --git a/compiler-rt/test/asan/lit.cfg b/compiler-rt/test/asan/lit.cfg
index ac88223b82f..4063a200393 100644
--- a/compiler-rt/test/asan/lit.cfg
+++ b/compiler-rt/test/asan/lit.cfg
@@ -109,6 +109,11 @@ config.substitutions.append( ('CHECK-%kernel_bits', ("CHECK-kernel-" + kernel_bi
config.available_features.add("asan-" + config.bits + "-bits")
+# Allow tests to use REQUIRES=stable-runtime. For use when you cannot use XFAIL
+# because the test hangs.
+if config.target_arch != 'arm':
+ config.available_features.add('stable-runtime')
+
# Turn on leak detection on 64-bit Linux.
if config.host_os == 'Linux' and config.bits == '64':
config.environment['ASAN_OPTIONS'] = 'detect_leaks=1'
OpenPOWER on IntegriCloud