Improve error handling in subgroup tests (#1352)

* MPGCOMP-14761 Improve error handling in subgroup tests

Signed-off-by: Stuart Brady <stuart.brady@arm.com>

* Add missing newline
This commit is contained in:
Stuart Brady
2021-11-16 11:27:04 +00:00
committed by GitHub
parent e9cd9a446e
commit 1116a71ba2
9 changed files with 74 additions and 59 deletions

View File

@@ -62,6 +62,7 @@ static int vlog_win32(const char *format, ...);
return TEST_FAIL; \
}
#define test_error(errCode, msg) test_error_ret(errCode, msg, errCode)
#define test_error_fail(errCode, msg) test_error_ret(errCode, msg, TEST_FAIL)
#define test_error_ret(errCode, msg, retValue) \
{ \
auto errCodeResult = errCode; \