mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +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)
|
if (!context)
|
||||||
{
|
{
|
||||||
print_error(error, "Unable to create testing context");
|
print_error(error, "Unable to create testing context");
|
||||||
|
gFailCount++;
|
||||||
|
gTestsFailed++;
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -840,6 +842,8 @@ test_status callSingleTestFunction(test_definition test,
|
|||||||
{
|
{
|
||||||
print_error(error, "Unable to create testing command queue");
|
print_error(error, "Unable to create testing command queue");
|
||||||
clReleaseContext(context);
|
clReleaseContext(context);
|
||||||
|
gFailCount++;
|
||||||
|
gTestsFailed++;
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -887,6 +891,8 @@ test_status callSingleTestFunction(test_definition test,
|
|||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
log_error("clFinish failed: %s\n", IGetErrorString(error));
|
log_error("clFinish failed: %s\n", IGetErrorString(error));
|
||||||
|
gFailCount++;
|
||||||
|
gTestsFailed++;
|
||||||
status = TEST_FAIL;
|
status = TEST_FAIL;
|
||||||
}
|
}
|
||||||
clReleaseCommandQueue(queue);
|
clReleaseCommandQueue(queue);
|
||||||
|
|||||||
Reference in New Issue
Block a user