From 5ff4978a5da40e825e651e7cd4deecd58c1407e8 Mon Sep 17 00:00:00 2001 From: Bryan Bernhart Date: Mon, 22 Mar 2021 17:18:46 +0000 Subject: [PATCH] Fix incorrect parsing logic in DawnTest DawnTest incorrectly reports arguments as unused nor skips over ones that were already parsed. Change-Id: Ibd7874419226ca6404e44236c12fbd70132e4551 Bug: None Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45442 Reviewed-by: Corentin Wallez Reviewed-by: Austin Eng Commit-Queue: Bryan Bernhart --- src/tests/DawnTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/DawnTest.cpp b/src/tests/DawnTest.cpp index fe816c2071..b6af876d4b 100644 --- a/src/tests/DawnTest.cpp +++ b/src/tests/DawnTest.cpp @@ -258,6 +258,7 @@ void DawnTestEnvironment::ParseArgs(int argc, char** argv) { } else { mBackendValidationLevel = dawn_native::BackendValidationLevel::Full; } + continue; } if (strcmp("-c", argv[i]) == 0 || strcmp("--begin-capture-on-startup", argv[i]) == 0) { @@ -320,6 +321,7 @@ void DawnTestEnvironment::ParseArgs(int argc, char** argv) { } } } + continue; } constexpr const char kWireTraceDirArg[] = "--wire-trace-dir=";