summaryrefslogtreecommitdiffstats
path: root/tools/gfx-unit-test
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-09-28 11:54:24 -0700
committerGitHub <noreply@github.com>2021-09-28 11:54:24 -0700
commitcdf1b2c007fefdca128584d2a9f63dec3d350e16 (patch)
tree9a7dbe0c78794e6d2d8c215017119ef06e9f8ab6 /tools/gfx-unit-test
parentaf788b62e18bbd55cd748ad60400a74cf1bc93ee (diff)
Improvements to the unit test framework. (#1948)
Diffstat (limited to 'tools/gfx-unit-test')
-rw-r--r--tools/gfx-unit-test/gfx-test-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx-unit-test/gfx-test-util.h b/tools/gfx-unit-test/gfx-test-util.h
index 7709512d5..b7e402abc 100644
--- a/tools/gfx-unit-test/gfx-test-util.h
+++ b/tools/gfx-unit-test/gfx-test-util.h
@@ -35,7 +35,7 @@ namespace gfx_test
return compareComputeResult(device, buffer, expectedBuffer.getBuffer(), bufferSize);
}
-#define GFX_CHECK_CALL(x) {auto callResult = (x); SLANG_CHECK(!SLANG_FAILED(callResult))}
-#define GFX_CHECK_CALL_ABORT(x) {auto callResult = (x); SLANG_CHECK_ABORT(!SLANG_FAILED(callResult))}
+#define GFX_CHECK_CALL(x) SLANG_CHECK(!SLANG_FAILED(x))
+#define GFX_CHECK_CALL_ABORT(x) SLANG_CHECK_ABORT(!SLANG_FAILED(x))
}