This is an archive of the discontinued LLVM Phabricator instance.

Expand unit tests for fuzzer::Merger
ClosedPublic

Authored by aarongreen on Jan 12 2021, 9:16 AM.

Details

Summary

This change adds additional unit tests for fuzzer::Merger::Parse and fuzzer::Merger::Merge in anticipation of additional changes to the merge control file format to support cross-process fuzzing.

It modifies the parameter handling of Merge slightly in order to make NewFeatures and NewCov consistent with NewFiles; namely, Merge *replaces* the contents of these output parameters rather than accumulating them (thereby fixing a buggy return value).

This is change 1 of (at least) 18 for cross-process fuzzing support.

Diff Detail

Event Timeline

aarongreen requested review of this revision.Jan 12 2021, 9:16 AM
aarongreen created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2021, 9:16 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
morehouse accepted this revision.Jan 20 2021, 5:34 PM
morehouse added inline comments.
compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp
846
This revision is now accepted and ready to land.Jan 20 2021, 5:34 PM

Addressed typo noted by morehouse.

aarongreen updated this revision to Diff 321573.Feb 4 2021, 3:00 PM

Just a rebase.

This revision was automatically updated to reflect the committed changes.