diff --git a/src/tests/unittests/validation/ValidationTest.h b/src/tests/unittests/validation/ValidationTest.h index edab1a6958..9acdb3fc19 100644 --- a/src/tests/unittests/validation/ValidationTest.h +++ b/src/tests/unittests/validation/ValidationTest.h @@ -45,10 +45,11 @@ do { \ FlushWire(); \ size_t warningsBefore = dawn_native::GetDeprecationWarningCountForTesting(backendDevice); \ + EXPECT_EQ(mLastWarningCount, warningsBefore); \ statement; \ FlushWire(); \ size_t warningsAfter = dawn_native::GetDeprecationWarningCountForTesting(backendDevice); \ - EXPECT_EQ(mLastWarningCount, warningsBefore); \ + EXPECT_EQ(warningsAfter, warningsBefore + 1); \ mLastWarningCount = warningsAfter; \ } while (0)