diff options
| author | Yong He <yonghe@outlook.com> | 2021-09-28 11:54:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-28 11:54:24 -0700 |
| commit | cdf1b2c007fefdca128584d2a9f63dec3d350e16 (patch) | |
| tree | 9a7dbe0c78794e6d2d8c215017119ef06e9f8ab6 /tools/gfx-unit-test | |
| parent | af788b62e18bbd55cd748ad60400a74cf1bc93ee (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.h | 4 |
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)) } |
