mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Remove unused parameter (#630)
The imageSupportRequired param is not needed in runTestHarnessWithCheck, so just remove it. Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
This commit is contained in:
@@ -60,12 +60,12 @@ int gHasLong = 1;
|
||||
int runTestHarness( int argc, const char *argv[], int testNum, test_definition testList[],
|
||||
int imageSupportRequired, int forceNoContextCreation, cl_command_queue_properties queueProps )
|
||||
{
|
||||
return runTestHarnessWithCheck( argc, argv, testNum, testList, imageSupportRequired, forceNoContextCreation, queueProps,
|
||||
return runTestHarnessWithCheck( argc, argv, testNum, testList, forceNoContextCreation, queueProps,
|
||||
( imageSupportRequired ) ? verifyImageSupport : NULL );
|
||||
}
|
||||
|
||||
int runTestHarnessWithCheck( int argc, const char *argv[], int testNum, test_definition testList[],
|
||||
int imageSupportRequired, int forceNoContextCreation, cl_command_queue_properties queueProps,
|
||||
int forceNoContextCreation, cl_command_queue_properties queueProps,
|
||||
DeviceCheckFn deviceCheckFn )
|
||||
{
|
||||
test_start();
|
||||
|
||||
@@ -88,8 +88,8 @@ typedef test_status (*DeviceCheckFn)( cl_device_id device );
|
||||
// Returns EXIT_SUCCESS iff all tests succeeded or the tests were listed,
|
||||
// otherwise return EXIT_FAILURE.
|
||||
extern int runTestHarnessWithCheck( int argc, const char *argv[], int testNum, test_definition testList[],
|
||||
int imageSupportRequired, int forceNoContextCreation,
|
||||
cl_command_queue_properties queueProps, DeviceCheckFn deviceCheckFn );
|
||||
int forceNoContextCreation, cl_command_queue_properties queueProps,
|
||||
DeviceCheckFn deviceCheckFn );
|
||||
|
||||
// The command line parser used by runTestHarness to break up parameters into calls to callTestFunctions
|
||||
extern int parseAndCallCommandLineTests( int argc, const char *argv[], cl_device_id device, int testNum,
|
||||
|
||||
@@ -304,6 +304,6 @@ test_status InitCL(cl_device_id device) {
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, true, 0, InitCL);
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, true, 0, InitCL);
|
||||
}
|
||||
|
||||
|
||||
@@ -335,7 +335,7 @@ int main(int argc, const char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
int ret = runTestHarnessWithCheck( argCount, argList, test_num, test_list, false, false, 0, init_cl );
|
||||
int ret = runTestHarnessWithCheck( argCount, argList, test_num, test_list, false, 0, init_cl );
|
||||
|
||||
free(argList);
|
||||
return ret;
|
||||
|
||||
@@ -331,7 +331,7 @@ int main( int argc, const char **argv )
|
||||
|
||||
if( !error )
|
||||
{
|
||||
error = runTestHarnessWithCheck( gArgCount, gArgList, test_num, test_list, false, true, 0, InitCL );
|
||||
error = runTestHarnessWithCheck( gArgCount, gArgList, test_num, test_list, true, 0, InitCL );
|
||||
}
|
||||
|
||||
if( gQueue )
|
||||
|
||||
@@ -316,7 +316,7 @@ int main (int argc, const char **argv )
|
||||
gMTdata = init_genrand( seed );
|
||||
|
||||
const char* arg[] = {argv[0]};
|
||||
int ret = runTestHarnessWithCheck( 1, arg, test_num, test_list, false, true, 0, InitCL );
|
||||
int ret = runTestHarnessWithCheck( 1, arg, test_num, test_list, true, 0, InitCL );
|
||||
|
||||
free_mtdata( gMTdata );
|
||||
|
||||
|
||||
@@ -96,5 +96,5 @@ int main(int argc, const char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, false, 0, InitCL);
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, 0, InitCL);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ int main (int argc, const char **argv )
|
||||
}
|
||||
|
||||
fflush( stdout );
|
||||
error = runTestHarnessWithCheck( argCount, argList, test_num, test_list, false, true, 0, InitCL );
|
||||
error = runTestHarnessWithCheck( argCount, argList, test_num, test_list, true, 0, InitCL );
|
||||
|
||||
exit:
|
||||
if(gQueue)
|
||||
|
||||
@@ -869,7 +869,7 @@ int main (int argc, const char * argv[])
|
||||
FPU_mode_type oldMode;
|
||||
DisableFTZ( &oldMode );
|
||||
|
||||
int ret = runTestHarnessWithCheck( gTestNameCount, gTestNames, test_num, test_list, false, true, 0, InitCL );
|
||||
int ret = runTestHarnessWithCheck( gTestNameCount, gTestNames, test_num, test_list, true, 0, InitCL );
|
||||
|
||||
RestoreFPState( &oldMode );
|
||||
|
||||
|
||||
@@ -103,6 +103,6 @@ test_definition test_list[] = {
|
||||
const int test_num = ARRAY_SIZE(test_list);
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, false,
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false,
|
||||
0, InitCL);
|
||||
}
|
||||
|
||||
@@ -966,7 +966,7 @@ int main(int argc, const char* argv[])
|
||||
return -1;
|
||||
}
|
||||
|
||||
int err = runTestHarnessWithCheck( argCount, argList, test_num, test_list, false, true, 0, InitCL );
|
||||
int err = runTestHarnessWithCheck( argCount, argList, test_num, test_list, true, 0, InitCL );
|
||||
|
||||
if(gQueue)
|
||||
{
|
||||
|
||||
@@ -213,5 +213,5 @@ int main(int argc, const char *argv[])
|
||||
return runTestHarnessWithCheck(argc, argv,
|
||||
spirvTestsRegistry::getInstance().getNumTests(),
|
||||
spirvTestsRegistry::getInstance().getTestDefinitions(),
|
||||
false, false, 0, checkAddressWidth);
|
||||
false, 0, checkAddressWidth);
|
||||
}
|
||||
|
||||
@@ -59,6 +59,6 @@ static test_status checkSubGroupsExtension(cl_device_id device)
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
gMTdata = init_genrand(0);
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, false, 0, checkSubGroupsExtension);
|
||||
return runTestHarnessWithCheck(argc, argv, test_num, test_list, false, 0, checkSubGroupsExtension);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user