From: Hubert Tong Date: Fri, 4 Sep 2020 17:07:44 +0000 (-0400) Subject: [tests][libFuzzer] Fix `-Wmissing-field-initializers` after D86092 X-Git-Tag: llvmorg-13-init~12897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dde16ef031a0a9465444b0b02b9427709ef70651;p=platform%2Fupstream%2Fllvm.git [tests][libFuzzer] Fix `-Wmissing-field-initializers` after D86092 Speculatively fix `-Werror,-Wmissing-field-initializers` failures relating to the `ScalePerExecTime` field added by D86092. --- diff --git a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp index e17fca8..d2b5cbb 100644 --- a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp +++ b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp @@ -592,7 +592,7 @@ TEST(FuzzerUtil, Base64) { TEST(Corpus, Distribution) { DataFlowTrace DFT; Random Rand(0); - struct EntropicOptions Entropic = {false, 0xFF, 100}; + struct EntropicOptions Entropic = {false, 0xFF, 100, false}; std::unique_ptr C(new InputCorpus("", Entropic)); size_t N = 10; size_t TriesPerUnit = 1<<16; @@ -1060,7 +1060,7 @@ TEST(Entropic, UpdateFrequency) { const size_t FeatIdx1 = 0, FeatIdx2 = 42, FeatIdx3 = 12, FeatIdx4 = 26; size_t Index; // Create input corpus with default entropic configuration - struct EntropicOptions Entropic = {true, 0xFF, 100}; + struct EntropicOptions Entropic = {true, 0xFF, 100, false}; std::unique_ptr C(new InputCorpus("", Entropic)); std::unique_ptr II(new InputInfo()); @@ -1097,7 +1097,7 @@ double SubAndSquare(double X, double Y) { TEST(Entropic, ComputeEnergy) { const double Precision = 0.01; - struct EntropicOptions Entropic = {true, 0xFF, 100}; + struct EntropicOptions Entropic = {true, 0xFF, 100, false}; std::unique_ptr C(new InputCorpus("", Entropic)); std::unique_ptr II(new InputInfo()); Vector> FeatureFreqs = {{1, 3}, {2, 3}, {3, 3}};