From 868de6c15e662532a13d7f18dce88e440b70c242 Mon Sep 17 00:00:00 2001 From: Sreelakshmi Haridas Maruthur Date: Tue, 28 Mar 2023 10:14:47 -0600 Subject: [PATCH] test_harness: Update test status upon api failure (#1615) Co-authored-by: Vasu Penugonda --- test_common/harness/testHarness.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_common/harness/testHarness.cpp b/test_common/harness/testHarness.cpp index b08c1c78..8fb98b08 100644 --- a/test_common/harness/testHarness.cpp +++ b/test_common/harness/testHarness.cpp @@ -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);