]> granicus.if.org Git - llvm/commitdiff
Fix fuzzer-flags.test on Windows
authorReid Kleckner <rnk@google.com>
Wed, 19 Jul 2017 23:22:06 +0000 (23:22 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 19 Jul 2017 23:22:06 +0000 (23:22 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308548 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/test/CMakeLists.txt
lib/Fuzzer/test/fuzzer-flags.test

index 43aea2b7a186e01fe9a4ceba39a62e1a67c9fb44..28de8dc725dd8808ab46fba2718c4f244e00fbf0 100644 (file)
@@ -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")
index 976da2906d7ce17cd088d5494f913d0fa0ff5ea0..61ce07797b4995a53d6be19d72250d71a1ee35fe 100644 (file)
@@ -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