[compiler-rt] r328634 - [libFuzzer] Disable optimization for exit_on_src_pos.test.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 09:40:34 PDT 2018


Author: morehouse
Date: Tue Mar 27 09:40:34 2018
New Revision: 328634

URL: http://llvm.org/viewvc/llvm-project?rev=328634&view=rev
Log:
[libFuzzer] Disable optimization for exit_on_src_pos.test.

Test fails on Darwin with -O2.

Modified:
    compiler-rt/trunk/test/fuzzer/exit_on_src_pos.test
    compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test

Modified: compiler-rt/trunk/test/fuzzer/exit_on_src_pos.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/exit_on_src_pos.test?rev=328634&r1=328633&r2=328634&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/exit_on_src_pos.test (original)
+++ compiler-rt/trunk/test/fuzzer/exit_on_src_pos.test Tue Mar 27 09:40:34 2018
@@ -1,7 +1,8 @@
 # Temporary use -mllvm -use-unknown-locations=Disable so that
 # all instructions have debug info (file line numbers) attached.
-RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest -mllvm -use-unknown-locations=Disable
-RUN: %cpp_compiler %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest
+# TODO: Find out why test fails on Darwin with -O2.
+RUN: %cpp_compiler -O0 %S/SimpleTest.cpp -o %t-SimpleTest -mllvm -use-unknown-locations=Disable
+RUN: %cpp_compiler -O0 %S/ShrinkControlFlowTest.cpp -o %t-ShrinkControlFlowTest
 
 RUN: %t-SimpleTest  -exit_on_src_pos=SimpleTest.cpp:18                 2>&1 | FileCheck %s --check-prefix=EXIT_ON_SRC_POS
 RUN: %t-ShrinkControlFlowTest  -exit_on_src_pos=Foo 2>&1 | FileCheck %s --check-prefix=EXIT_ON_SRC_POS

Modified: compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test?rev=328634&r1=328633&r2=328634&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test (original)
+++ compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test Tue Mar 27 09:40:34 2018
@@ -1,6 +1,7 @@
 # Test that the minimizer stops when it sees a differe bug.
 UNSUPPORTED: freebsd
 
+# TODO: Find out why test fails on Darwin with -O2.
 RUN: %cpp_compiler -O0 %S/TwoDifferentBugsTest.cpp -o %t-TwoDifferentBugsTest
 
 RUN: rm -rf %t && mkdir %t




More information about the llvm-commits mailing list