diff options
author | Reid Kleckner <rnk@google.com> | 2017-07-19 23:22:06 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-07-19 23:22:06 +0000 |
commit | b3283b740fd9ba508ff71208ea7ac2c3168da2ec (patch) | |
tree | 70d6559ec10455a2115f5553eed2b077bc54b6bb | |
parent | 102c2319caa9aa1c74650df4dba1700457263bb2 (diff) | |
download | bcm5719-llvm-b3283b740fd9ba508ff71208ea7ac2c3168da2ec.tar.gz bcm5719-llvm-b3283b740fd9ba508ff71208ea7ac2c3168da2ec.zip |
Fix fuzzer-flags.test on Windows
The optional external function callbacks have to be exported in order
for them to be called. The test was failing because libFuzzer wasn't
calling LLVMFuzzerInitialize.
We can reconsider if this is the best way to mark these optional
callbacks exported later.
llvm-svn: 308548
-rw-r--r-- | llvm/lib/Fuzzer/test/CMakeLists.txt | 1 | ||||
-rw-r--r-- | llvm/lib/Fuzzer/test/fuzzer-flags.test | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Fuzzer/test/CMakeLists.txt b/llvm/lib/Fuzzer/test/CMakeLists.txt index 43aea2b7a18..28de8dc725d 100644 --- a/llvm/lib/Fuzzer/test/CMakeLists.txt +++ b/llvm/lib/Fuzzer/test/CMakeLists.txt @@ -158,6 +158,7 @@ function(test_export_symbol target symbol) endif() endfunction() +test_export_symbol(FlagsTest "LLVMFuzzerInitialize") test_export_symbol(InitializeTest "LLVMFuzzerInitialize") test_export_symbol(BogusInitializeTest "LLVMFuzzerInitialize") test_export_symbol(CustomCrossOverTest "LLVMFuzzerCustomCrossOver") diff --git a/llvm/lib/Fuzzer/test/fuzzer-flags.test b/llvm/lib/Fuzzer/test/fuzzer-flags.test index 976da2906d7..61ce07797b4 100644 --- a/llvm/lib/Fuzzer/test/fuzzer-flags.test +++ b/llvm/lib/Fuzzer/test/fuzzer-flags.test @@ -1,6 +1,3 @@ -# Does not work on windows for unknown reason. -UNSUPPORTED: windows - RUN: LLVMFuzzer-FlagsTest -foo_bar=1 2>&1 | FileCheck %s --check-prefix=FOO_BAR FOO_BAR: WARNING: unrecognized flag '-foo_bar=1'; use -help=1 to list all flags FOO_BAR: BINGO |