aboutsummaryrefslogtreecommitdiff
path: root/test_common/harness/errorHelpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'test_common/harness/errorHelpers.h')
-rw-r--r--test_common/harness/errorHelpers.h24
1 files changed, 2 insertions, 22 deletions
diff --git a/test_common/harness/errorHelpers.h b/test_common/harness/errorHelpers.h
index 19446014..80eb3b58 100644
--- a/test_common/harness/errorHelpers.h
+++ b/test_common/harness/errorHelpers.h
@@ -56,17 +56,13 @@ static int vlog_win32(const char *format, ...);
#define vlog printf
#endif
-#define ct_assert(b) ct_assert_i(b, __LINE__)
-#define ct_assert_i(b, line) ct_assert_ii(b, line)
-#define ct_assert_ii(b, line) \
- int _compile_time_assertion_on_line_##line[b ? 1 : -1];
-
#define test_fail(msg, ...) \
{ \
log_error(msg, ##__VA_ARGS__); \
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; \
@@ -97,21 +93,6 @@ static int vlog_win32(const char *format, ...);
"the device version! (from %s:%d)\n", \
msg, __FILE__, __LINE__);
-#define test_missing_support_offline_cmpiler(errCode, msg) \
- test_missing_support_offline_cmpiler_ret(errCode, msg, errCode)
-// this macro should always return CL_SUCCESS, but print the skip message on
-// test not supported with offline compiler
-#define test_missing_support_offline_cmpiler_ret(errCode, msg, retValue) \
- { \
- if (errCode != CL_SUCCESS) \
- { \
- log_info("INFO: Subtest %s tests is not supported in offline " \
- "compiler execution path! (from %s:%d)\n", \
- msg, __FILE__, __LINE__); \
- return TEST_SKIP; \
- } \
- }
-
// expected error code vs. what we got
#define test_failure_error(errCode, expectedErrCode, msg) \
test_failure_error_ret(errCode, expectedErrCode, msg, \
@@ -186,8 +167,7 @@ extern const char *GetAddressModeName(cl_addressing_mode mode);
extern const char *GetQueuePropertyName(cl_command_queue_properties properties);
extern const char *GetDeviceTypeName(cl_device_type type);
-int check_functions_for_offline_compiler(const char *subtestname,
- cl_device_id device);
+bool check_functions_for_offline_compiler(const char *subtestname);
cl_int OutputBuildLogs(cl_program program, cl_uint num_devices,
cl_device_id *device_list);