mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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 )
|
||||||
|
|||||||
Reference in New Issue
Block a user