mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 00:09:02 +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
@@ -78,8 +78,6 @@ int argCount = 0;
|
||||
cl_context gContext = NULL;
|
||||
cl_command_queue gQueue = NULL;
|
||||
char appName[64] = "ctest";
|
||||
int gTestCount = 0;
|
||||
int gFailCount = 0;
|
||||
int gStartTestNumber = -1;
|
||||
int gEndTestNumber = 0;
|
||||
#if defined( __APPLE__ )
|
||||
@@ -327,12 +325,6 @@ int main (int argc, const char **argv )
|
||||
if (error)
|
||||
vlog_error("clFinish failed: %d\n", error);
|
||||
|
||||
if (gFailCount == 0 && gTestCount >= 0) {
|
||||
vlog("PASSED %d of %d sub-tests.\n", gTestCount, gTestCount);
|
||||
} else if (gFailCount > 0) {
|
||||
vlog_error("FAILED %d of %d sub-tests.\n", gFailCount, gTestCount);
|
||||
}
|
||||
|
||||
clReleaseMemObject(gInBuffer);
|
||||
|
||||
for( int i = 0; i < kCallStyleCount; i++ ) {
|
||||
|
||||
Reference in New Issue
Block a user