[all-commits] [llvm/llvm-project] 0fe470: Expand unit tests for fuzzer::Merger

Marco Vanotti via All-commits all-commits at lists.llvm.org
Fri Feb 12 11:18:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fe4701e515333556920aecc845feb2cc70e116c
      https://github.com/llvm/llvm-project/commit/0fe4701e515333556920aecc845feb2cc70e116c
  Author: Marco Vanotti <mvanotti at google.com>
  Date:   2021-02-12 (Fri, 12 Feb 2021)

  Changed paths:
    M compiler-rt/lib/fuzzer/FuzzerFork.cpp
    M compiler-rt/lib/fuzzer/FuzzerMerge.cpp
    M compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp

  Log Message:
  -----------
  Expand unit tests for fuzzer::Merger

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.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D94506




More information about the All-commits mailing list