mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Move TEST_SKIPPED_ITSELF to test_status in testHarness (#1089)
TEST_SKIPPED_ITSELF was originally located in threadTesting.h but this no longer makes sense. This change moves the definition to the test_status struct in testHarness so that it can be used in the same way that test_status' can be used. Signed-off-by: Chetankumar Mistry <chetan.mistry@arm.com>
This commit is contained in:
@@ -480,6 +480,7 @@ int runTestHarnessWithCheck(int argc, const char *argv[], int testNum,
|
|||||||
case TEST_PASS: break;
|
case TEST_PASS: break;
|
||||||
case TEST_FAIL: return fail_init_info(testNum);
|
case TEST_FAIL: return fail_init_info(testNum);
|
||||||
case TEST_SKIP: return skip_init_info(testNum);
|
case TEST_SKIP: return skip_init_info(testNum);
|
||||||
|
case TEST_SKIPPED_ITSELF: return skip_init_info(testNum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -493,6 +494,7 @@ int runTestHarnessWithCheck(int argc, const char *argv[], int testNum,
|
|||||||
case TEST_PASS: break;
|
case TEST_PASS: break;
|
||||||
case TEST_FAIL: return fail_init_info(testNum);
|
case TEST_FAIL: return fail_init_info(testNum);
|
||||||
case TEST_SKIP: return skip_init_info(testNum);
|
case TEST_SKIP: return skip_init_info(testNum);
|
||||||
|
case TEST_SKIPPED_ITSELF: return skip_init_info(testNum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ typedef enum test_status
|
|||||||
TEST_PASS = 0,
|
TEST_PASS = 0,
|
||||||
TEST_FAIL = 1,
|
TEST_FAIL = 1,
|
||||||
TEST_SKIP = 2,
|
TEST_SKIP = 2,
|
||||||
|
TEST_SKIPPED_ITSELF = -100,
|
||||||
} test_status;
|
} test_status;
|
||||||
|
|
||||||
extern int gFailCount;
|
extern int gFailCount;
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
#include <CL/opencl.h>
|
#include <CL/opencl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TEST_SKIPPED_ITSELF -100
|
|
||||||
|
|
||||||
typedef int (*basefn)(cl_device_id deviceID, cl_context context,
|
typedef int (*basefn)(cl_device_id deviceID, cl_context context,
|
||||||
cl_command_queue queue, int num_elements);
|
cl_command_queue queue, int num_elements);
|
||||||
extern int test_threaded_function(basefn fnToTest, cl_device_id device,
|
extern int test_threaded_function(basefn fnToTest, cl_device_id device,
|
||||||
|
|||||||
Reference in New Issue
Block a user