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 runTestHarness( int argc, const char *argv[], int testNum, test_definition testList[],
|
||||||
int imageSupportRequired, int forceNoContextCreation, cl_command_queue_properties queueProps )
|
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 );
|
( imageSupportRequired ) ? verifyImageSupport : NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
int runTestHarnessWithCheck( int argc, const char *argv[], int testNum, test_definition testList[],
|
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 )
|
DeviceCheckFn deviceCheckFn )
|
||||||
{
|
{
|
||||||
test_start();
|
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,
|
// Returns EXIT_SUCCESS iff all tests succeeded or the tests were listed,
|
||||||
// otherwise return EXIT_FAILURE.
|
// otherwise return EXIT_FAILURE.
|
||||||
extern int runTestHarnessWithCheck( int argc, const char *argv[], int testNum, test_definition testList[],
|
extern int runTestHarnessWithCheck( int argc, const char *argv[], int testNum, test_definition testList[],
|
||||||
int imageSupportRequired, int forceNoContextCreation,
|
int forceNoContextCreation, cl_command_queue_properties queueProps,
|
||||||
cl_command_queue_properties queueProps, DeviceCheckFn deviceCheckFn );
|
DeviceCheckFn deviceCheckFn );
|
||||||
|
|
||||||
// The command line parser used by runTestHarness to break up parameters into calls to callTestFunctions
|
// 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,
|
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[])
|
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);
|
free(argList);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ int main( int argc, const char **argv )
|
|||||||
|
|
||||||
if( !error )
|
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 )
|
if( gQueue )
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ int main (int argc, const char **argv )
|
|||||||
gMTdata = init_genrand( seed );
|
gMTdata = init_genrand( seed );
|
||||||
|
|
||||||
const char* arg[] = {argv[0]};
|
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 );
|
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 );
|
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:
|
exit:
|
||||||
if(gQueue)
|
if(gQueue)
|
||||||
|
|||||||
@@ -869,7 +869,7 @@ int main (int argc, const char * argv[])
|
|||||||
FPU_mode_type oldMode;
|
FPU_mode_type oldMode;
|
||||||
DisableFTZ( &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 );
|
RestoreFPState( &oldMode );
|
||||||
|
|
||||||
|
|||||||
@@ -103,6 +103,6 @@ test_definition test_list[] = {
|
|||||||
const int test_num = ARRAY_SIZE(test_list);
|
const int test_num = ARRAY_SIZE(test_list);
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
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);
|
0, InitCL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -966,7 +966,7 @@ int main(int argc, const char* argv[])
|
|||||||
return -1;
|
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)
|
if(gQueue)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -213,5 +213,5 @@ int main(int argc, const char *argv[])
|
|||||||
return runTestHarnessWithCheck(argc, argv,
|
return runTestHarnessWithCheck(argc, argv,
|
||||||
spirvTestsRegistry::getInstance().getNumTests(),
|
spirvTestsRegistry::getInstance().getNumTests(),
|
||||||
spirvTestsRegistry::getInstance().getTestDefinitions(),
|
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[])
|
int main(int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
gMTdata = init_genrand(0);
|
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