Remove injected bug

Removes an abort that was injected to confirm that a fuzzer target was
working.

Bug: https://crbug.com/1246587
Change-Id: Ibe5270eacb3dfa2832b5de4c1fcf7b220af91fcc
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/66121
Auto-Submit: Alastair Donaldson <afdx@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Alastair Donaldson 2021-10-07 18:20:29 +00:00 committed by Tint LUCI CQ
parent 7ff308fd18
commit d4b8f887a5
1 changed files with 1 additions and 7 deletions

View File

@ -97,13 +97,7 @@ int main(int argc, const char** argv) {
if (target_format == "hlsl") {
tint::fuzzers::CommonFuzzer fuzzer(tint::fuzzers::InputFormat::kWGSL,
tint::fuzzers::OutputFormat::kHLSL);
int result = fuzzer.Run(data.data(), data.size());
if (result == 0) {
// TODO(afdx): Deliberate temporary abort to check that ClusterFuzz black
// box fuzzer target is working
abort();
}
return result;
return fuzzer.Run(data.data(), data.size());
} else if (target_format == "msl") {
tint::fuzzers::DataBuilder builder(data.data(), data.size());
tint::writer::msl::Options options;