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 <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
This commit is contained in:
Bryan Bernhart 2021-03-22 17:18:46 +00:00 committed by Commit Bot service account
parent 5e121c9350
commit 5ff4978a5d
1 changed files with 2 additions and 0 deletions

View File

@ -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=";