mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Get rid of test_finish macro and related ATF cruft (#633)
Closes #431 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -58,8 +58,6 @@ static int doTest(cl_command_queue queue, cl_context context,
|
||||
|
||||
static void printUsage( void );
|
||||
|
||||
static void TestFinishAtExit(void);
|
||||
|
||||
//-----------------------------------------
|
||||
// Definitions and initializations
|
||||
//-----------------------------------------
|
||||
@@ -579,7 +577,6 @@ const int test_num = ARRAY_SIZE( test_list );
|
||||
int main(int argc, const char* argv[])
|
||||
{
|
||||
test_start();
|
||||
atexit(TestFinishAtExit);
|
||||
|
||||
argc = parseCustomParam(argc, argv);
|
||||
if (argc == -1)
|
||||
@@ -666,7 +663,3 @@ static void printUsage( void )
|
||||
}
|
||||
}
|
||||
|
||||
static void TestFinishAtExit(void)
|
||||
{
|
||||
test_finish();
|
||||
}
|
||||
|
||||
@@ -27,22 +27,6 @@
|
||||
#include <CL/opencl.h>
|
||||
#endif
|
||||
|
||||
// Enable the test to be used with ATF
|
||||
#if USE_ATF
|
||||
// export BUILD_WITH_ATF=1
|
||||
#include <ATF/ATF.h>
|
||||
#define test_start() ATFTestStart()
|
||||
#define log_info ATFLogInfo
|
||||
#define log_error ATFLogError
|
||||
#define test_finish() ATFTestFinish()
|
||||
#else
|
||||
#define test_start()
|
||||
#define log_info printf
|
||||
#define log_error printf
|
||||
#define test_finish()
|
||||
#endif // USE_ATF
|
||||
|
||||
|
||||
// Defines the set of types we support (no support for double)
|
||||
typedef enum {
|
||||
kuchar = 0,
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
#include "harness/compat.h"
|
||||
#include "harness/errorHelpers.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "test_select.h"
|
||||
|
||||
Reference in New Issue
Block a user