mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +00:00
CommandAllocatorTests: Fix a couple use-after-move.
Fixed: dawn:1416 Change-Id: I489dcfaf2584968869d9ac72da3c41dd6d1e3ba3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91161 Commit-Queue: Ben Clayton <bclayton@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ben Clayton <bclayton@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
318f6acd56
commit
e89b311a5d
@ -351,7 +351,6 @@ TEST(CommandAllocator, EmptyIterator) {
|
|||||||
bool hasNext = iterator2.NextCommandId(&type);
|
bool hasNext = iterator2.NextCommandId(&type);
|
||||||
ASSERT_FALSE(hasNext);
|
ASSERT_FALSE(hasNext);
|
||||||
|
|
||||||
iterator1.MakeEmptyAsDataWasDestroyed();
|
|
||||||
iterator2.MakeEmptyAsDataWasDestroyed();
|
iterator2.MakeEmptyAsDataWasDestroyed();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -362,7 +361,6 @@ TEST(CommandAllocator, EmptyIterator) {
|
|||||||
bool hasNext = iterator2.NextCommandId(&type);
|
bool hasNext = iterator2.NextCommandId(&type);
|
||||||
ASSERT_FALSE(hasNext);
|
ASSERT_FALSE(hasNext);
|
||||||
|
|
||||||
iterator1.MakeEmptyAsDataWasDestroyed();
|
|
||||||
iterator2.MakeEmptyAsDataWasDestroyed();
|
iterator2.MakeEmptyAsDataWasDestroyed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user