test_harness: Update test status upon api failure (#1615)

Co-authored-by: Vasu Penugonda <vpenugon@qti.qualcomm.com>
This commit is contained in:
Sreelakshmi Haridas Maruthur
2023-03-28 10:14:47 -06:00
committed by GitHub
parent 20ab003053
commit 868de6c15e

View File

@@ -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);