mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
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
This commit is contained in:
parent
4973ffe5ed
commit
e52092d1ed
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user