mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
Move printing sub-test information into test harness (#421)
This removes all the duplicated code from each test, and moves it to test harness so that we have single place where this information is printed. Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
This commit is contained in:
committed by
Kévin Petit
parent
19951a2a14
commit
03650057bb
@@ -54,8 +54,6 @@ char appName[ MAXPATHLEN ] = "";
|
||||
cl_device_id gDevice = NULL;
|
||||
cl_context gContext = NULL;
|
||||
cl_command_queue gQueue = NULL;
|
||||
int gTestCount = 0;
|
||||
int gFailCount = 0;
|
||||
static int32_t gStartTestNumber;
|
||||
static int32_t gEndTestNumber;
|
||||
int gSkipCorrectnessTesting = 0;
|
||||
@@ -883,21 +881,6 @@ int main (int argc, const char * argv[])
|
||||
if (error_code)
|
||||
vlog_error("clFinish failed:%d\n", error_code);
|
||||
|
||||
if (gFailCount == 0)
|
||||
{
|
||||
if (gTestCount > 1)
|
||||
vlog("PASSED %d of %d sub-tests.\n", gTestCount, gTestCount);
|
||||
else
|
||||
vlog("PASSED sub-test.\n");
|
||||
}
|
||||
else if (gFailCount > 0)
|
||||
{
|
||||
if (gTestCount > 1)
|
||||
vlog_error("FAILED %d of %d sub-tests.\n", gFailCount, gTestCount);
|
||||
else
|
||||
vlog_error("FAILED sub-test.\n");
|
||||
}
|
||||
|
||||
ReleaseCL();
|
||||
|
||||
#if defined( __APPLE__ )
|
||||
|
||||
Reference in New Issue
Block a user