[PATCH] D29549: [libFuzzer] Change Uninstrumented test name.

Marcos Pividori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 16:14:45 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL294387: [libFuzzer] Change Uninstrumented test name. (authored by mpividori).

Changed prior to commit:
  https://reviews.llvm.org/D29549?vs=87113&id=87554#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D29549

Files:
  llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp
  llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
  llvm/trunk/lib/Fuzzer/test/fuzzer.test
  llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt


Index: llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt
===================================================================
--- llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt
+++ llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt
@@ -5,7 +5,7 @@
   "${LIBFUZZER_FLAGS_BASE} -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard")
 
 set(NoCoverageTests
-  UninstrumentedTest
+  NotinstrumentedTest
   )
 
 foreach(Test ${NoCoverageTests})
Index: llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp
===================================================================
--- llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp
+++ llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp
@@ -0,0 +1,11 @@
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+
+// This test should not be instrumented.
+#include <cstdint>
+#include <cstddef>
+
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+  return 0;
+}
+
Index: llvm/trunk/lib/Fuzzer/test/fuzzer.test
===================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer.test
+++ llvm/trunk/lib/Fuzzer/test/fuzzer.test
@@ -34,7 +34,7 @@
 DISABLED: not LLVMFuzzer-UninstrumentedTest-Uninstrumented 2>&1 | FileCheck %s --check-prefix=UNINSTRUMENTED
 UNINSTRUMENTED: ERROR: __sanitizer_set_death_callback is not defined. Exiting.
 
-RUN: not LLVMFuzzer-UninstrumentedTest-NoCoverage 2>&1 | FileCheck %s --check-prefix=NO_COVERAGE
+RUN: not LLVMFuzzer-NotinstrumentedTest-NoCoverage 2>&1 | FileCheck %s --check-prefix=NO_COVERAGE
 NO_COVERAGE: ERROR: no interesting inputs were found. Is the code instrumented for coverage? Exiting
 
 RUN: not LLVMFuzzer-BufferOverflowOnInput 2>&1 | FileCheck %s --check-prefix=OOB
Index: llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
===================================================================
--- llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
+++ llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
@@ -1,11 +0,0 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-
-// This test should not be instrumented.
-#include <cstdint>
-#include <cstddef>
-
-extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
-  return 0;
-}
-


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29549.87554.patch
Type: text/x-patch
Size: 2368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170208/00d30b8a/attachment.bin>


More information about the llvm-commits mailing list