]> granicus.if.org Git - llvm/commitdiff
[libFuzzer] Mark a test that infinite loops as unsupported
authorJustin Bogner <mail@justinbogner.com>
Wed, 22 Feb 2017 23:05:17 +0000 (23:05 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 22 Feb 2017 23:05:17 +0000 (23:05 +0000)
We need to investigate this, but for now it just causes too much
headache when trying to run these tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295900 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/test/lit.cfg
lib/Fuzzer/test/trace-malloc-2.test [new file with mode: 0644]
lib/Fuzzer/test/trace-malloc.test

index 55391b8f4833b517827a8c39e5e03a7d22868c35..85c95b42d1eaf1ba60882af7c6b38f051acb57d1 100644 (file)
@@ -40,6 +40,9 @@ else:
 if sys.platform.startswith('win') or sys.platform.startswith('cygwin'):
   config.available_features.add('windows')
 
+if sys.platform.startswith('darwin'):
+  config.available_features.add('darwin')
+
 if config.is_posix:
   config.available_features.add('posix')
 
diff --git a/lib/Fuzzer/test/trace-malloc-2.test b/lib/Fuzzer/test/trace-malloc-2.test
new file mode 100644 (file)
index 0000000..7719b65
--- /dev/null
@@ -0,0 +1,8 @@
+// FIXME: This test infinite loops on darwin because it crashes
+// printing a stack trace repeatedly
+UNSUPPORTED: darwin
+
+RUN: LLVMFuzzer-TraceMallocTest -seed=1 -trace_malloc=2 -runs=1000 2>&1 | FileCheck %s --check-prefix=TRACE2
+TRACE2-DAG: FREE[0]
+TRACE2-DAG: MALLOC[0]
+TRACE2-DAG: in LLVMFuzzerTestOneInput
index c95147904d4256176bc27d558f674ba6d753c713..25694cc2de5c4b83eae0a80ac9991fb11d10da49 100644 (file)
@@ -3,8 +3,3 @@ CHECK-DAG: MallocFreeTracer: STOP 0 0 (same)
 CHECK-DAG: MallocFreeTracer: STOP 0 1 (DIFFERENT)
 CHECK-DAG: MallocFreeTracer: STOP 1 0 (DIFFERENT)
 CHECK-DAG: MallocFreeTracer: STOP 1 1 (same)
-
-RUN: LLVMFuzzer-TraceMallocTest -seed=1 -trace_malloc=2 -runs=1000 2>&1 | FileCheck %s --check-prefix=TRACE2
-TRACE2-DAG: FREE[0]
-TRACE2-DAG: MALLOC[0]
-TRACE2-DAG: in LLVMFuzzerTestOneInput