fix return code when readwrite image is not supported (#1873)

This function (do_test) starts by testing write and read individually.
Both of them can have errors.

When readwrite image is not supported, the function returns
TEST_SKIPPED_ITSELF potentially masking errors leading to the test
returning EXIT_SUCCESS even with errors along the way.
This commit is contained in:
Romaric Jodin
2024-01-16 18:52:08 +01:00
committed by GitHub
parent f924273cdd
commit 7d3db1bd07

View File

@@ -202,7 +202,7 @@ static int doTest( cl_device_id device, cl_context context, cl_command_queue que
if ((testTypesToRun & kReadWriteTests) if ((testTypesToRun & kReadWriteTests)
&& checkForReadWriteImageSupport(device)) && checkForReadWriteImageSupport(device))
{ {
return TEST_SKIPPED_ITSELF; return ret;
} }
if( ( testTypesToRun & kReadWriteTests ) && !gTestMipmaps ) if( ( testTypesToRun & kReadWriteTests ) && !gTestMipmaps )