mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 00:39:03 +00:00
Fix -list option in test_spir (#2509)
This handles the case where test_spir is called without arguments.
This commit is contained in:
@@ -6782,7 +6782,8 @@ static int ParseCommandLine (int argc, const char *argv[],
|
|||||||
ListTests();
|
ListTests();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (!strcmp(argv[1], "--list") || !strcmp(argv[1], "-list"))
|
else if ((argc > 1)
|
||||||
|
&& (!strcmp(argv[1], "--list") || !strcmp(argv[1], "-list")))
|
||||||
{
|
{
|
||||||
ListTests();
|
ListTests();
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user