mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
test_harness: Update test status upon api failure (#1615)
Co-authored-by: Vasu Penugonda <vpenugon@qti.qualcomm.com>
This commit is contained in:
committed by
GitHub
parent
20ab003053
commit
868de6c15e
@@ -818,6 +818,8 @@ test_status callSingleTestFunction(test_definition test,
|
||||
if (!context)
|
||||
{
|
||||
print_error(error, "Unable to create testing context");
|
||||
gFailCount++;
|
||||
gTestsFailed++;
|
||||
return TEST_FAIL;
|
||||
}
|
||||
|
||||
@@ -840,6 +842,8 @@ test_status callSingleTestFunction(test_definition test,
|
||||
{
|
||||
print_error(error, "Unable to create testing command queue");
|
||||
clReleaseContext(context);
|
||||
gFailCount++;
|
||||
gTestsFailed++;
|
||||
return TEST_FAIL;
|
||||
}
|
||||
}
|
||||
@@ -887,6 +891,8 @@ test_status callSingleTestFunction(test_definition test,
|
||||
if (error)
|
||||
{
|
||||
log_error("clFinish failed: %s\n", IGetErrorString(error));
|
||||
gFailCount++;
|
||||
gTestsFailed++;
|
||||
status = TEST_FAIL;
|
||||
}
|
||||
clReleaseCommandQueue(queue);
|
||||
|
||||
Reference in New Issue
Block a user