llvm-project/llvm/lib/Fuzzer/test
Akira Hatanaka 48b1dee7b4 [libFuzzer] XFAIL fuzzer-oom.test on Darwin.
The test fails on Darwin because Fuzzer::DeathCallback (which calls
DumpCurrentUnit("crash-")) is called before DumpCurrentUnit("oom-") is
called in Fuzzer::RssLimitCallback. DeathCallback is transitively called
from __sanitizer_print_memory_profile.

This should fix the fuzzer bot that has been failing for a while:

http://lab.llvm.org:8080/green/job/libFuzzer/

llvm-svn: 300127
2017-04-12 23:15:10 +00:00
..
no-coverage [libFuzzer] Use custom target instead of list of binaries for tests. 2017-02-08 00:03:26 +00:00
trace-pc [libFuzzer] best effort support for -fsanitize-coverage=trace-pc instrumentation. It is less efficient and precise than -fsanitize-coverage=trace-pc-guard, but still works 2017-03-30 01:27:20 +00:00
ubsan [libFuzzer] Use custom target instead of list of binaries for tests. 2017-02-08 00:03:26 +00:00
uninstrumented [libFuzzer] Use custom target instead of list of binaries for tests. 2017-02-08 00:03:26 +00:00
unit
AFLDriverTest.cpp [LibFuzzer] Unbreak the build on macOS which was broken by r272858. 2016-07-07 18:14:11 +00:00
AbsNegAndConstant64Test.cpp [libFuzzer] Use long long to ensure 64 bits. 2017-02-08 00:03:31 +00:00
AbsNegAndConstantTest.cpp [libFuzzer] use sizeof() in tests instead of 4 and 8 2016-09-09 22:21:16 +00:00
AccumulateAllocationsTest.cpp [libFuzzer] disable leak detection if we have tried it for 1000 times w/o finding a leak 2016-04-27 19:52:34 +00:00
BadStrcmpTest.cpp [libFuzzer] be more careful when calling strlen of strcmp parameters, PR32357 2017-03-24 22:19:52 +00:00
BogusInitializeTest.cpp [libFuzzer] add an assert to protect against LLVMFuzzerInitialize changing argv[0] 2017-01-20 21:34:24 +00:00
BufferOverflowOnInput.cpp
CMakeLists.txt [libFuzzer] best effort support for -fsanitize-coverage=trace-pc instrumentation. It is less efficient and precise than -fsanitize-coverage=trace-pc-guard, but still works 2017-03-30 01:27:20 +00:00
CallerCalleeTest.cpp
CounterTest.cpp
CustomCrossOverAndMutateTest.cpp [libFuzzer] Reorder includes in test 2017-03-13 23:49:00 +00:00
CustomCrossOverTest.cpp [libFuzzer] remove unused option 2016-09-30 22:29:57 +00:00
CustomMutatorTest.cpp [libFuzzer] simplify FuzzerInterface.h 2016-05-13 18:04:35 +00:00
CxxStringEqTest.cpp [Fuzzer] Flush std::cout before aborting in CxxStringEqTest 2017-04-03 23:00:25 +00:00
DSO1.cpp [libFuzzer] Fix test with shared libraries on Windows. 2017-01-22 02:28:08 +00:00
DSO2.cpp [libFuzzer] Fix test with shared libraries on Windows. 2017-01-22 02:28:08 +00:00
DSOTestExtra.cpp [libFuzzer] change trace-pc to use 8-byte guards 2016-09-17 05:04:47 +00:00
DSOTestMain.cpp [libFuzzer] extend -print_coverage to also print uncovered lines, functions, and files. 2016-10-19 00:12:03 +00:00
DivTest.cpp [libFuzzer] use trace-div and trace-gep for guided fuzzing, add tests 2016-08-30 01:30:14 +00:00
EmptyTest.cpp [libfuzzer] replacing unittest for truncate_units with functional test. 2016-05-25 21:00:17 +00:00
EquivalenceATest.cpp [libFuzzer] experimental support for 'equivalance fuzzing' 2017-01-20 20:57:07 +00:00
EquivalenceBTest.cpp [libFuzzer] experimental support for 'equivalance fuzzing' 2017-01-20 20:57:07 +00:00
FourIndependentBranchesTest.cpp
FullCoverageSetTest.cpp
FuzzerUnittest.cpp [libFuzzer] increase kFeatureSetSize to 2^21 and make InputCorpus scale to that size. This will potentially make libFuzzer more sensitive on targets with lots of signals 2017-03-24 00:45:15 +00:00
InitializeTest.cpp [libFuzzer] add StandaloneFuzzTargetMain.c and a test for it 2016-10-25 22:30:34 +00:00
LargeTest.cpp [libFuzzer] add test/LargeTest.cpp, mostly for manual experiments with large number of edges, not yet suitable for unit testing 2017-03-11 01:54:06 +00:00
LeakTest.cpp [libFuzzer] added -detect_leaks flag (0 by default for now). When enabled, it will help finding leaks while fuzzing 2016-04-20 00:24:21 +00:00
LeakTimeoutTest.cpp
LoadTest.cpp [libFuzzer] Update Load test to work on 32 bits. 2017-02-08 00:02:32 +00:00
Memcmp64BytesTest.cpp [libFuzzer] increase the size of FixedWord from 27 to 64, see PR31950 2017-02-14 23:02:37 +00:00
MemcmpTest.cpp
NotinstrumentedTest.cpp [libFuzzer] Change Uninstrumented test name. 2017-02-08 00:03:13 +00:00
NthRunCrashTest.cpp
NullDerefOnEmptyTest.cpp [libFuzzer] print stats if we crash on empty input 2016-05-25 00:15:36 +00:00
NullDerefTest.cpp
OneHugeAllocTest.cpp [libFuzzer] Remove unnecessary includes of posix headers. 2016-12-16 17:35:21 +00:00
OutOfMemorySingleLargeMallocTest.cpp [libFuzzer] Fix OutOfMemory tests to work on 32 bits. 2017-01-22 01:58:50 +00:00
OutOfMemoryTest.cpp [libFuzzer] Remove unnecessary includes of posix headers. 2016-12-16 17:35:21 +00:00
RepeatedBytesTest.cpp [libFuzzer] add InsertRepeatedBytes and EraseBytes. 2016-08-15 17:48:28 +00:00
RepeatedMemcmp.cpp [libFuzzer] re-enable LLVMFuzzer-RepeatedMemcmp test, cleanup the test runner nearby 2017-01-21 00:01:27 +00:00
ShrinkControlFlowTest.cpp [libFuzzer] refactoring to make -shrink=1 work for value profile, added a test. 2016-10-05 22:56:21 +00:00
ShrinkValueProfileTest.cpp [libFuzzer] refactoring to make -shrink=1 work for value profile, added a test. 2016-10-05 22:56:21 +00:00
SignedIntOverflowTest.cpp [libFuzzer] add a test for libFuzzer+ubsan, extend the docs on using libFuzzer+ubsan 2016-05-09 21:02:36 +00:00
SimpleCmpTest.cpp [libFuzzer] tests: don't test 64-bit comparison on 32-bit builds 2017-03-31 03:51:40 +00:00
SimpleDictionaryTest.cpp
SimpleHashTest.cpp
SimpleTest.cpp
SimpleThreadedTest.cpp [libFuzzer] more refactoring around CurrentUnit. Also add a threading test on which we currently have a race (when reporting bugs from multiple threads) 2016-05-26 22:17:32 +00:00
SingleByteInputTest.cpp [libFuzzer] improve -minimize_crash: honor -artifact_prefix= and don't special case 2-byte inputs 2017-01-19 19:38:12 +00:00
SingleMemcmpTest.cpp [libFuzzer] new experimental feature: value profiling. Profiles values that affect control flow and treats new values as new coverage. 2016-08-16 19:33:51 +00:00
SingleStrcmpTest.cpp [libFuzzer] use table of recent compares for memcmp/strcmp (to unify the code between cmp and memcmp handling) 2017-01-17 23:09:05 +00:00
SingleStrncmpTest.cpp [libFuzzer] ensure that strncmp is not inlined in a test 2017-03-31 03:34:33 +00:00
SpamyTest.cpp
StrcmpTest.cpp [libFuzzer] add InsertRepeatedBytes and EraseBytes. 2016-08-15 17:48:28 +00:00
StrncmpOOBTest.cpp [libFuzzer] add a test for asan's strict_string_checks=1 2016-10-22 00:05:44 +00:00
StrncmpTest.cpp [libFuzzer] new experimental feature: value profiling. Profiles values that affect control flow and treats new values as new coverage. 2016-08-16 19:33:51 +00:00
StrstrTest.cpp [libFuzzer] Update tests to use more general functions instead of posix specific. 2016-12-16 17:35:13 +00:00
SwapCmpTest.cpp [libFuzzer] tests: don't test 64-bit comparison on 32-bit builds 2017-03-31 03:51:40 +00:00
Switch2Test.cpp [libFuzzer] add switch tests 2016-10-11 01:13:32 +00:00
SwitchTest.cpp [libFuzzer] make __sanitizer_cov_trace_switch more predictable 2016-12-29 02:50:35 +00:00
TableLookupTest.cpp [libFuzzer] fix non-linux build 2017-03-23 23:48:47 +00:00
ThreadedLeakTest.cpp [libFuzzer] add ThreadedLeakTest 2016-07-15 17:19:43 +00:00
ThreadedTest.cpp
TimeoutEmptyTest.cpp [libFuzzer] Fix bug in detecting timeouts when input string is empty. 2016-12-13 17:46:25 +00:00
TimeoutTest.cpp
TraceMallocTest.cpp [libFuzzer] add -trace_malloc= flag 2016-10-13 19:06:46 +00:00
TwoDifferentBugsTest.cpp [libFuzzer] add a test with two different bugs 2017-03-17 01:33:16 +00:00
afl-driver-extra-stats.test [libFuzzer] Disable afl tests on non-posix systems. 2017-02-01 22:40:50 +00:00
afl-driver-stderr.test [libFuzzer] Disable afl tests on non-posix systems. 2017-02-01 22:40:50 +00:00
bad-strcmp.test [libFuzzer] be more careful when calling strlen of strcmp parameters, PR32357 2017-03-24 22:19:52 +00:00
caller-callee.test [libFuzzer] don't depend on time in a test 2016-12-11 06:28:09 +00:00
coverage.test Mark some libFuzzer tests as XFAIL'd on Darwin 2017-02-28 21:45:59 +00:00
cxxstring.test [libFuzzer] make sure we use the feedback from std::string operator == 2017-01-23 22:11:04 +00:00
dict1.txt
disable-leaks.test [libFuzzer] split two tests to get more parallelism in test runs 2017-03-24 00:51:18 +00:00
dump_coverage.test Un-XFAIL Fuzzer/test/dump_coverage.test. This now passes on Darwin (after r297094). 2017-03-07 01:01:38 +00:00
equivalence-signals.test [libFuzzer] split two tests to get more parallelism in test runs 2017-03-24 00:51:18 +00:00
equivalence.test [libFuzzer] split two tests to get more parallelism in test runs 2017-03-24 00:51:18 +00:00
extra-counters.test [libFuzzer] create experimental support for user-provided coverage signal 2017-03-23 22:43:12 +00:00
fuzzer-customcrossover.test [libFuzzer] remove a stale flag from tests, run value-profile-strncmp.test longer (hopefully, will fix the OSX bot) 2017-03-30 04:22:20 +00:00
fuzzer-customcrossoverandmutate.test [libFuzzer] remove a stale flag from tests, run value-profile-strncmp.test longer (hopefully, will fix the OSX bot) 2017-03-30 04:22:20 +00:00
fuzzer-custommutator.test [libfuzzer] splitting fuzzer.test 2016-06-03 18:05:22 +00:00
fuzzer-dict.test
fuzzer-dirs.test [libFuzzer] Don't add newline character when using echo in tests. 2017-02-08 00:02:59 +00:00
fuzzer-fdmask.test [libfuzzer] splitting fuzzer.test 2016-06-03 18:05:22 +00:00
fuzzer-finalstats.test [libfuzzer] splitting fuzzer.test 2016-06-03 18:05:22 +00:00
fuzzer-flags.test [libFuzzer] don't print help for internal flags 2016-09-10 00:35:30 +00:00
fuzzer-leak.test [libFuzzer] split two tests to get more parallelism in test runs 2017-03-24 00:51:18 +00:00
fuzzer-oom-with-profile.test [libFuzzer] extend -rss_limit_mb to crash instantly on a single malloc that exceeds the limit 2016-11-30 22:39:35 +00:00
fuzzer-oom.test [libFuzzer] XFAIL fuzzer-oom.test on Darwin. 2017-04-12 23:15:10 +00:00
fuzzer-printcovpcs.test [libFuzzer] test cleanup 2016-12-10 02:45:56 +00:00
fuzzer-runs.test [libfuzzer] splitting fuzzer.test 2016-06-03 18:05:22 +00:00
fuzzer-seed.test [libfuzzer] splitting fuzzer.test 2016-06-03 18:05:22 +00:00
fuzzer-segv.test [libFuzzer] Update fuzzer-segv to set environment variables. 2017-02-08 00:02:45 +00:00
fuzzer-singleinputs.test [libFuzzer] Accept different extensions. 2017-02-01 22:40:29 +00:00
fuzzer-threaded.test [libFuzzer] use the new chainable malloc hooks instead of the old un-chainable ones, use atomic for malloc/free counters instead of a thread local counter in the main thread. This should make on-the-spot leak detection in libFuzzer more reliable 2016-06-16 20:17:41 +00:00
fuzzer-timeout.test [libFuzzer] Fix bug in detecting timeouts when input string is empty. 2016-12-13 17:46:25 +00:00
fuzzer-traces-hooks.test [libFuzzer] add more iterations to LLVMFuzzer-Memcmp64BytesTest 2017-03-11 05:14:49 +00:00
fuzzer-ubsan.test [libFuzzer] add a test for libFuzzer+ubsan, extend the docs on using libFuzzer+ubsan 2016-05-09 21:02:36 +00:00
fuzzer.test [libFuzzer] Change Uninstrumented test name. 2017-02-08 00:03:13 +00:00
hi.txt
lit.cfg [libFuzzer] Mark a test that infinite loops as unsupported 2017-02-22 23:05:17 +00:00
lit.site.cfg.in [libFuzzer] Add features `windows` and `posix` for lit tests. 2017-02-01 22:40:34 +00:00
merge-posix.test [libFuzzer] Isolate merge tests that require posix. 2017-02-01 22:40:40 +00:00
merge-summary.test [libFuzzer] add two experimental flags to make corpus merging more scalable: -save_coverage_summary/-load_coverage_summary. This is still WIP, the documentation will come later if these flags survive 2017-03-22 20:32:44 +00:00
merge.test [libFuzzer] Remove ? wildcard on tests. 2017-02-08 00:02:50 +00:00
minimize_crash.test [libFuzzer] honor -exact_artifact_path for all intermediate files during crash minimization (https://github.com/google/oss-fuzz/issues/250) 2017-03-24 21:09:16 +00:00
minimize_two_crashes.test [libFuzzer] Fix test on Windows. 2017-03-25 01:19:45 +00:00
repeated-bytes.test [libFuzzer] fix the bot 2016-08-15 19:36:13 +00:00
shrink.test [libFuzzer] test cleanup 2016-12-10 02:45:56 +00:00
simple-cmp.test [libFuzzer] enable use_cmp by default 2016-10-27 21:44:37 +00:00
standalone.test [libFuzzer] add StandaloneFuzzTargetMain.c and a test for it 2016-10-25 22:30:34 +00:00
swap-cmp.test [libFuzzer] enable use_cmp by default 2016-10-27 21:44:37 +00:00
trace-malloc-2.test [libFuzzer] Mark a test that infinite loops as unsupported 2017-02-22 23:05:17 +00:00
trace-malloc.test [libFuzzer] Mark a test that infinite loops as unsupported 2017-02-22 23:05:17 +00:00
trace-pc.test [libFuzzer] best effort support for -fsanitize-coverage=trace-pc instrumentation. It is less efficient and precise than -fsanitize-coverage=trace-pc-guard, but still works 2017-03-30 01:27:20 +00:00
ulimit.test [libFuzzer] Disable ulimit test on windows. 2017-02-08 00:02:54 +00:00
value-profile-cmp.test [libFuzzer] split one slow test into several, for more parallel testing 2016-12-12 22:55:25 +00:00
value-profile-cmp2.test [libFuzzer] split one slow test into several, for more parallel testing 2016-12-12 22:55:25 +00:00
value-profile-cmp3.test [libFuzzer] split one slow test into several, for more parallel testing 2016-12-12 22:55:25 +00:00
value-profile-cmp4.test [libFuzzer] split one slow test into several, for more parallel testing 2016-12-12 22:55:25 +00:00
value-profile-div.test [libFuzzer] Update test to consider different exceptions. 2017-02-08 00:02:25 +00:00
value-profile-load.test [libFuzzer] enable use_cmp by default 2016-10-27 21:44:37 +00:00
value-profile-mem.test [libFuzzer] remove stale code 2017-03-14 21:30:14 +00:00
value-profile-set.test [libFuzzer] enable use_cmp by default 2016-10-27 21:44:37 +00:00
value-profile-strcmp.test [libFuzzer] remove a stale flag from tests, run value-profile-strncmp.test longer (hopefully, will fix the OSX bot) 2017-03-30 04:22:20 +00:00
value-profile-strncmp.test [libFuzzer] try to fix value-profile-strncmp on the Mac bot 2017-03-31 00:52:39 +00:00
value-profile-switch.test [libFuzzer] test cleanup 2016-12-10 02:45:56 +00:00