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