[llvm] r294387 - [libFuzzer] Change Uninstrumented test name.

Marcos Pividori via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 16:03:13 PST 2017


Author: mpividori
Date: Tue Feb  7 18:03:13 2017
New Revision: 294387

URL: http://llvm.org/viewvc/llvm-project?rev=294387&view=rev
Log:
[libFuzzer] Change Uninstrumented test name.

On Windows, executables with the word "uninst" included in their names are
associated with administrator privileges.

Differential Revision: https://reviews.llvm.org/D29549

Added:
    llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp
      - copied, changed from r294386, llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
Removed:
    llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
Modified:
    llvm/trunk/lib/Fuzzer/test/fuzzer.test
    llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt

Copied: llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp (from r294386, llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp?p2=llvm/trunk/lib/Fuzzer/test/NotinstrumentedTest.cpp&p1=llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp&r1=294386&r2=294387&rev=294387&view=diff
==============================================================================
    (empty)

Removed: llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp?rev=294386&view=auto
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/UninstrumentedTest.cpp (removed)
@@ -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;
-}
-

Modified: llvm/trunk/lib/Fuzzer/test/fuzzer.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/fuzzer.test?rev=294387&r1=294386&r2=294387&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer.test (original)
+++ llvm/trunk/lib/Fuzzer/test/fuzzer.test Tue Feb  7 18:03:13 2017
@@ -34,7 +34,7 @@ COUNTERS: BINGO
 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

Modified: llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt?rev=294387&r1=294386&r2=294387&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt (original)
+++ llvm/trunk/lib/Fuzzer/test/no-coverage/CMakeLists.txt Tue Feb  7 18:03:13 2017
@@ -5,7 +5,7 @@ set(CMAKE_CXX_FLAGS
   "${LIBFUZZER_FLAGS_BASE} -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard")
 
 set(NoCoverageTests
-  UninstrumentedTest
+  NotinstrumentedTest
   )
 
 foreach(Test ${NoCoverageTests})




More information about the llvm-commits mailing list