mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Update '-list' option (#2457)
'-list' option is used to print all sub-tests. But some test do not support it at all. And all test do not display it the same way, making it quite complicated for external tools to extract them. That CL clean the usage so that tests: - Print the sub-tests list with either '-list' (to prevent breaking legacy usage) or '--list' (to match other options) - Do not print anything else when the option is used
This commit is contained in:
@@ -1101,20 +1101,19 @@ int main(int argc, const char* argv[])
|
||||
argCount, argList, test_registry::getInstance().num_tests(),
|
||||
test_registry::getInstance().definitions(), true, 0, InitCL);
|
||||
|
||||
if(gQueue)
|
||||
if (gQueue)
|
||||
{
|
||||
int error = clFinish(gQueue);
|
||||
if (error) {
|
||||
if (error)
|
||||
{
|
||||
log_error("clFinish failed: %d\n", error);
|
||||
}
|
||||
if (clReleaseCommandQueue(gQueue) != CL_SUCCESS)
|
||||
log_error("clReleaseCommandQueue\n");
|
||||
}
|
||||
|
||||
if(clReleaseCommandQueue(gQueue)!=CL_SUCCESS)
|
||||
log_error("clReleaseCommandQueue\n");
|
||||
if(clReleaseContext(gContext)!= CL_SUCCESS)
|
||||
if (gContext && clReleaseContext(gContext) != CL_SUCCESS)
|
||||
log_error("clReleaseContext\n");
|
||||
|
||||
|
||||
free(argList);
|
||||
remove(gFileName);
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user