[compiler-rt] r322380 - lib Fuzzer FreeBSD support
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 09:15:05 PST 2018
Author: kamil
Date: Fri Jan 12 09:15:05 2018
New Revision: 322380
URL: http://llvm.org/viewvc/llvm-project?rev=322380&view=rev
Log:
lib Fuzzer FreeBSD support
Summary: Patch by David CARLIER
Reviewers: vitalybuka, kcc, dim, emaste, davide, morehouse, george.karpenkov
Reviewed By: morehouse
Subscribers: george.karpenkov, kubamracek, srhines, mgorny, emaste, krytarowski
Differential Revision: https://reviews.llvm.org/D41642
Modified:
compiler-rt/trunk/cmake/config-ix.cmake
compiler-rt/trunk/lib/fuzzer/FuzzerDefs.h
compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
compiler-rt/trunk/lib/fuzzer/FuzzerExtraCounters.cpp
compiler-rt/trunk/lib/fuzzer/FuzzerUtilLinux.cpp
compiler-rt/trunk/lib/fuzzer/FuzzerUtilPosix.cpp
compiler-rt/trunk/lib/fuzzer/afl/afl_driver.cpp
compiler-rt/trunk/lib/fuzzer/build.sh
compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
compiler-rt/trunk/test/fuzzer/TraceMallocThreadedTest.cpp
compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test
compiler-rt/trunk/test/fuzzer/caller-callee.test
compiler-rt/trunk/test/fuzzer/cxxstring.test
compiler-rt/trunk/test/fuzzer/dump_coverage.test
compiler-rt/trunk/test/fuzzer/equivalence-signals.test
compiler-rt/trunk/test/fuzzer/equivalence.test
compiler-rt/trunk/test/fuzzer/lit.cfg
compiler-rt/trunk/test/fuzzer/memcmp.test
compiler-rt/trunk/test/fuzzer/memcmp64.test
compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test
compiler-rt/trunk/test/fuzzer/recommended-dictionary.test
compiler-rt/trunk/test/fuzzer/strcmp.test
compiler-rt/trunk/test/fuzzer/strncmp.test
compiler-rt/trunk/test/fuzzer/strstr.test
compiler-rt/trunk/test/fuzzer/value-profile-mem.test
compiler-rt/trunk/test/fuzzer/value-profile-strcmp.test
compiler-rt/trunk/test/fuzzer/value-profile-strncmp.test
Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Fri Jan 12 09:15:05 2018
@@ -604,7 +604,7 @@ else()
endif()
if (COMPILER_RT_HAS_SANITIZER_COMMON AND FUZZER_SUPPORTED_ARCH AND
- OS_NAME MATCHES "Android|Darwin|Linux|NetBSD")
+ OS_NAME MATCHES "Android|Darwin|Linux|NetBSD|FreeBSD")
set(COMPILER_RT_HAS_FUZZER TRUE)
else()
set(COMPILER_RT_HAS_FUZZER FALSE)
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerDefs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerDefs.h?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerDefs.h (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerDefs.h Fri Jan 12 09:15:05 2018
@@ -27,30 +27,42 @@
#define LIBFUZZER_FUCHSIA 0
#define LIBFUZZER_LINUX 1
#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 0
#define LIBFUZZER_WINDOWS 0
#elif __APPLE__
#define LIBFUZZER_APPLE 1
#define LIBFUZZER_FUCHSIA 0
#define LIBFUZZER_LINUX 0
#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 0
#define LIBFUZZER_WINDOWS 0
#elif __NetBSD__
#define LIBFUZZER_APPLE 0
#define LIBFUZZER_FUCHSIA 0
#define LIBFUZZER_LINUX 0
#define LIBFUZZER_NETBSD 1
+#define LIBFUZZER_FREEBSD 0
+#define LIBFUZZER_WINDOWS 0
+#elif __FreeBSD__
+#define LIBFUZZER_APPLE 0
+#define LIBFUZZER_FUCHSIA 0
+#define LIBFUZZER_LINUX 0
+#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 1
#define LIBFUZZER_WINDOWS 0
#elif _WIN32
#define LIBFUZZER_APPLE 0
#define LIBFUZZER_FUCHSIA 0
#define LIBFUZZER_LINUX 0
#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 0
#define LIBFUZZER_WINDOWS 1
#elif __Fuchsia__
#define LIBFUZZER_APPLE 0
#define LIBFUZZER_FUCHSIA 1
#define LIBFUZZER_LINUX 0
#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 0
#define LIBFUZZER_WINDOWS 0
#else
#error "Support for your platform has not been implemented"
@@ -60,7 +72,7 @@
# define __has_attribute(x) 0
#endif
-#define LIBFUZZER_POSIX (LIBFUZZER_APPLE || LIBFUZZER_LINUX || LIBFUZZER_NETBSD)
+#define LIBFUZZER_POSIX (LIBFUZZER_APPLE || LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD)
#ifdef __x86_64
# if __has_attribute(target)
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerExtFunctionsWeak.cpp Fri Jan 12 09:15:05 2018
@@ -13,7 +13,7 @@
// to clients right now.
//===----------------------------------------------------------------------===//
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FUCHSIA
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FUCHSIA || LIBFUZZER_FREEBSD
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
@@ -51,4 +51,4 @@ ExternalFunctions::ExternalFunctions() {
} // namespace fuzzer
-#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD
+#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FUSCHIA || LIBFUZZER_FREEBSD
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerExtraCounters.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerExtraCounters.cpp?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerExtraCounters.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerExtraCounters.cpp Fri Jan 12 09:15:05 2018
@@ -11,7 +11,7 @@
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD
__attribute__((weak)) extern uint8_t __start___libfuzzer_extra_counters;
__attribute__((weak)) extern uint8_t __stop___libfuzzer_extra_counters;
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerUtilLinux.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerUtilLinux.cpp?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerUtilLinux.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerUtilLinux.cpp Fri Jan 12 09:15:05 2018
@@ -9,7 +9,7 @@
// Misc utils for Linux.
//===----------------------------------------------------------------------===//
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD
#include "FuzzerCommand.h"
#include <stdlib.h>
@@ -23,4 +23,4 @@ int ExecuteCommand(const Command &Cmd) {
} // namespace fuzzer
-#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD
+#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD
Modified: compiler-rt/trunk/lib/fuzzer/FuzzerUtilPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/FuzzerUtilPosix.cpp?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/FuzzerUtilPosix.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/FuzzerUtilPosix.cpp Fri Jan 12 09:15:05 2018
@@ -118,7 +118,7 @@ size_t GetPeakRSSMb() {
struct rusage usage;
if (getrusage(RUSAGE_SELF, &usage))
return 0;
- if (LIBFUZZER_LINUX) {
+ if (LIBFUZZER_LINUX || LIBFUZZER_FREEBSD || LIBFUZZER_NETBSD) {
// ru_maxrss is in KiB
return usage.ru_maxrss >> 10;
} else if (LIBFUZZER_APPLE) {
Modified: compiler-rt/trunk/lib/fuzzer/afl/afl_driver.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/afl/afl_driver.cpp?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/afl/afl_driver.cpp (original)
+++ compiler-rt/trunk/lib/fuzzer/afl/afl_driver.cpp Fri Jan 12 09:15:05 2018
@@ -69,14 +69,22 @@ statistics from the file. If that fails
#define LIBFUZZER_LINUX 1
#define LIBFUZZER_APPLE 0
#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 0
#elif __APPLE__
#define LIBFUZZER_LINUX 0
#define LIBFUZZER_APPLE 1
#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 0
#elif __NetBSD__
#define LIBFUZZER_LINUX 0
#define LIBFUZZER_APPLE 0
#define LIBFUZZER_NETBSD 1
+#define LIBFUZZER_FREEBSD 0
+#elif __FreeBSD__
+#define LIBFUZZER_LINUX 0
+#define LIBFUZZER_APPLE 0
+#define LIBFUZZER_NETBSD 0
+#define LIBFUZZER_FREEBSD 1
#else
#error "Support for your platform has not been implemented"
#endif
@@ -125,7 +133,7 @@ size_t GetPeakRSSMb() {
struct rusage usage;
if (getrusage(RUSAGE_SELF, &usage))
return 0;
- if (LIBFUZZER_LINUX || LIBFUZZER_NETBSD) {
+ if (LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD) {
// ru_maxrss is in KiB
return usage.ru_maxrss >> 10;
} else if (LIBFUZZER_APPLE) {
Modified: compiler-rt/trunk/lib/fuzzer/build.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/build.sh?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/build.sh (original)
+++ compiler-rt/trunk/lib/fuzzer/build.sh Fri Jan 12 09:15:05 2018
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
LIBFUZZER_SRC_DIR=$(dirname $0)
CXX="${CXX:-clang}"
for f in $LIBFUZZER_SRC_DIR/*.cpp; do
Modified: compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/fuzzer/tests/CMakeLists.txt Fri Jan 12 09:15:05 2018
@@ -12,8 +12,8 @@ set_target_properties(FuzzerUnitTests PR
set(LIBFUZZER_UNITTEST_LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS --driver-mode=g++)
-if(APPLE)
- list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lc++)
+if(APPLE OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+ list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lc++ -lpthread)
else()
list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lstdc++ -lpthread)
endif()
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Fri Jan 12 09:15:05 2018
@@ -36,7 +36,7 @@
#endif
// TLS is handled differently on different platforms
-#if SANITIZER_LINUX || SANITIZER_NETBSD
+#if SANITIZER_LINUX || SANITIZER_NETBSD || SANITIZER_FREEBSD
# define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE \
__attribute__((tls_model("initial-exec"))) thread_local
#else
Modified: compiler-rt/trunk/test/fuzzer/TraceMallocThreadedTest.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/TraceMallocThreadedTest.cpp?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/TraceMallocThreadedTest.cpp (original)
+++ compiler-rt/trunk/test/fuzzer/TraceMallocThreadedTest.cpp Fri Jan 12 09:15:05 2018
@@ -7,6 +7,7 @@
#include <cstddef>
#include <cstdint>
#include <cstring>
+#include <cstdlib>
#include <thread>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
Modified: compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test (original)
+++ compiler-rt/trunk/test/fuzzer/afl-driver-stderr.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %no_fuzzer_cpp_compiler -fno-sanitize-coverage=edge,trace-cmp,indirect-calls,8bit-counters,trace-pc-guard %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest
; Test that not specifying a stderr file isn't broken.
Modified: compiler-rt/trunk/test/fuzzer/caller-callee.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/caller-callee.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/caller-callee.test (original)
+++ compiler-rt/trunk/test/fuzzer/caller-callee.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/CallerCalleeTest.cpp -o %t-CallerCalleeTest
CHECK: BINGO
RUN: not %t-CallerCalleeTest -use_value_profile=1 -cross_over=0 -seed=1 -runs=10000000 2>&1 | FileCheck %s
Modified: compiler-rt/trunk/test/fuzzer/cxxstring.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/cxxstring.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/cxxstring.test (original)
+++ compiler-rt/trunk/test/fuzzer/cxxstring.test Fri Jan 12 09:15:05 2018
@@ -1,4 +1,4 @@
-UNSUPPORTED: windows
+UNSUPPORTED: windows,freebsd
RUN: %cpp_compiler %S/CxxStringEqTest.cpp -o %t-CxxStringEqTest
Modified: compiler-rt/trunk/test/fuzzer/dump_coverage.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/dump_coverage.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/dump_coverage.test (original)
+++ compiler-rt/trunk/test/fuzzer/dump_coverage.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/DSO1.cpp -fPIC -shared -o %t-DSO1.so
RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/DSO2.cpp -fPIC -shared -o %t-DSO2.so
RUN: %cpp_compiler -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard %S/DSOTestMain.cpp %S/DSOTestExtra.cpp -L. %t-DSO1.so %t-DSO2.so -o %t-DSOTest
Modified: compiler-rt/trunk/test/fuzzer/equivalence-signals.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/equivalence-signals.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/equivalence-signals.test (original)
+++ compiler-rt/trunk/test/fuzzer/equivalence-signals.test Fri Jan 12 09:15:05 2018
@@ -1,6 +1,7 @@
# Run EquivalenceATest against itself with a small timeout
# to stress the signal handling and ensure that shmem doesn't mind
# the signals.
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/EquivalenceATest.cpp -o %t-EquivalenceATest
RUN: %t-EquivalenceATest -timeout=1 -run_equivalence_server=EQUIV_SIG_TEST & export APID=$!
Modified: compiler-rt/trunk/test/fuzzer/equivalence.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/equivalence.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/equivalence.test (original)
+++ compiler-rt/trunk/test/fuzzer/equivalence.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/EquivalenceATest.cpp -o %t-EquivalenceATest
RUN: %cpp_compiler %S/EquivalenceBTest.cpp -o %t-EquivalenceBTest
Modified: compiler-rt/trunk/test/fuzzer/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/lit.cfg?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/lit.cfg (original)
+++ compiler-rt/trunk/test/fuzzer/lit.cfg Fri Jan 12 09:15:05 2018
@@ -25,7 +25,7 @@ else:
config.test_format = lit.formats.ShTest(execute_external)
# LeakSanitizer is not supported on OSX right now.
-if sys.platform.startswith('darwin'):
+if sys.platform.startswith('darwin') or sys.platform.startswith('freebsd'):
lit_config.note('lsan feature unavailable')
else:
lit_config.note('lsan feature available')
@@ -51,7 +51,7 @@ config.substitutions.append(('%libfuzzer
def generate_compiler_cmd(is_cpp=True, fuzzer_enabled=True):
compiler_cmd = config.c_compiler
- link_cmd = '-lc++' if 'darwin' in config.target_triple else '-lstdc++'
+ link_cmd = '-lc++' if 'darwin' or 'freebsd' in config.target_triple else '-lstdc++'
std_cmd = '-std=c++11' if is_cpp else ''
sanitizers = ['address']
if fuzzer_enabled:
Modified: compiler-rt/trunk/test/fuzzer/memcmp.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/memcmp.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/memcmp.test (original)
+++ compiler-rt/trunk/test/fuzzer/memcmp.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/MemcmpTest.cpp -o %t-MemcmpTest
RUN: not %t-MemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
CHECK: BINGO
Modified: compiler-rt/trunk/test/fuzzer/memcmp64.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/memcmp64.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/memcmp64.test (original)
+++ compiler-rt/trunk/test/fuzzer/memcmp64.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/Memcmp64BytesTest.cpp -o %t-Memcmp64BytesTest
RUN: not %t-Memcmp64BytesTest -seed=1 -runs=1000000 2>&1 | FileCheck %s
CHECK: BINGO
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=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test (original)
+++ compiler-rt/trunk/test/fuzzer/minimize_two_crashes.test Fri Jan 12 09:15:05 2018
@@ -1,4 +1,5 @@
# Test that the minimizer stops when it sees a differe bug.
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/TwoDifferentBugsTest.cpp -o %t-TwoDifferentBugsTest
Modified: compiler-rt/trunk/test/fuzzer/recommended-dictionary.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/recommended-dictionary.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/recommended-dictionary.test (original)
+++ compiler-rt/trunk/test/fuzzer/recommended-dictionary.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/RepeatedMemcmp.cpp -o %t-RepeatedMemcmp
RUN: %t-RepeatedMemcmp -seed=11 -runs=100000 -max_len=20 2>&1 | FileCheck %s --check-prefix=RECOMMENDED_DICT
RECOMMENDED_DICT:###### Recommended dictionary. ######
Modified: compiler-rt/trunk/test/fuzzer/strcmp.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/strcmp.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/strcmp.test (original)
+++ compiler-rt/trunk/test/fuzzer/strcmp.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/StrcmpTest.cpp -o %t-StrcmpTest
RUN: not %t-StrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
CHECK: BINGO
Modified: compiler-rt/trunk/test/fuzzer/strncmp.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/strncmp.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/strncmp.test (original)
+++ compiler-rt/trunk/test/fuzzer/strncmp.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/StrncmpTest.cpp -o %t-StrncmpTest
RUN: not %t-StrncmpTest -seed=2 -runs=10000000 2>&1 | FileCheck %s
CHECK: BINGO
Modified: compiler-rt/trunk/test/fuzzer/strstr.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/strstr.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/strstr.test (original)
+++ compiler-rt/trunk/test/fuzzer/strstr.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
RUN: %cpp_compiler %S/StrstrTest.cpp -o %t-StrstrTest
RUN: not %t-StrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
CHECK: BINGO
Modified: compiler-rt/trunk/test/fuzzer/value-profile-mem.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/value-profile-mem.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/value-profile-mem.test (original)
+++ compiler-rt/trunk/test/fuzzer/value-profile-mem.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
CHECK: BINGO
RUN: %cpp_compiler %S/SingleMemcmpTest.cpp -o %t-SingleMemcmpTest
RUN: not %t-SingleMemcmpTest -seed=1 -use_cmp=0 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s
Modified: compiler-rt/trunk/test/fuzzer/value-profile-strcmp.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/value-profile-strcmp.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/value-profile-strcmp.test (original)
+++ compiler-rt/trunk/test/fuzzer/value-profile-strcmp.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
CHECK: BINGO
RUN: %cpp_compiler %S/SingleStrcmpTest.cpp -o %t-SingleStrcmpTest
RUN: not %t-SingleStrcmpTest -seed=1 -use_cmp=0 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s
Modified: compiler-rt/trunk/test/fuzzer/value-profile-strncmp.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/value-profile-strncmp.test?rev=322380&r1=322379&r2=322380&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/value-profile-strncmp.test (original)
+++ compiler-rt/trunk/test/fuzzer/value-profile-strncmp.test Fri Jan 12 09:15:05 2018
@@ -1,3 +1,4 @@
+UNSUPPORTED: freebsd
CHECK: BINGO
RUN: %cpp_compiler %S/SingleStrncmpTest.cpp -o %t-SingleStrncmpTest
RUN: not %t-SingleStrncmpTest -seed=1 -use_cmp=0 -use_value_profile=1 -runs=100000000 2>&1 | FileCheck %s
More information about the llvm-commits
mailing list