From cdf1b2c007fefdca128584d2a9f63dec3d350e16 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 28 Sep 2021 11:54:24 -0700 Subject: Improvements to the unit test framework. (#1948) --- tools/gfx-unit-test/gfx-test-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/gfx-unit-test') 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)) } -- cgit v1.2.3