From ad8772dfb2781a65eeb5668967e894d0efea83c5 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 19 Mar 2021 09:41:21 +0000 Subject: [PATCH] Fix incorrect WGSL u32 != i32 comparison in a test Bug: tint:354 Change-Id: I4eef469334072aac606d6ed7384eb066986c2db1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45400 Commit-Queue: Corentin Wallez Commit-Queue: Ben Clayton Auto-Submit: Corentin Wallez Reviewed-by: Ben Clayton --- src/tests/end2end/VertexBufferRobustnessTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/end2end/VertexBufferRobustnessTests.cpp b/src/tests/end2end/VertexBufferRobustnessTests.cpp index 6011043b33..166a871a9c 100644 --- a/src/tests/end2end/VertexBufferRobustnessTests.cpp +++ b/src/tests/end2end/VertexBufferRobustnessTests.cpp @@ -160,7 +160,7 @@ TEST_P(VertexBufferRobustnessTest, UIntClamp) { wgpu::Buffer vertexBuffer = utils::CreateBufferFromData(device, kVertices, sizeof(kVertices), wgpu::BufferUsage::Vertex); - DoTest("[[location(0)]] var a : u32;", "a == 473", vertexState, vertexBuffer, 4, true); + DoTest("[[location(0)]] var a : u32;", "a == 473u", vertexState, vertexBuffer, 4, true); } TEST_P(VertexBufferRobustnessTest, Float2Clamp) {