mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 07:59: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:
@@ -81,18 +81,7 @@ extern cl_device_fp_config gDoubleCapabilities;
|
||||
#define LOWER_IS_BETTER 0
|
||||
#define HIGHER_IS_BETTER 1
|
||||
|
||||
#if USE_ATF
|
||||
|
||||
#include <ATF/ATF.h>
|
||||
#define test_start() ATFTestStart()
|
||||
#define test_finish() ATFTestFinish()
|
||||
#define vlog( ... ) ATFLogInfo(__VA_ARGS__)
|
||||
#define vlog_error( ... ) ATFLogError(__VA_ARGS__)
|
||||
#define vlog_perf( _number, _higherIsBetter, _units, _nameFmt, ... ) ATFLogPerformanceNumber(_number, _higherIsBetter, _units, _nameFmt, __VA_ARGS__ )
|
||||
|
||||
#else
|
||||
#include "harness/errorHelpers.h"
|
||||
#endif
|
||||
#include "harness/errorHelpers.h"
|
||||
|
||||
#if defined (_MSC_VER )
|
||||
//Deal with missing scalbn on windows
|
||||
|
||||
@@ -133,7 +133,6 @@ static void ReleaseCL( void );
|
||||
static int InitILogbConstants( void );
|
||||
static int IsTininessDetectedBeforeRounding( void );
|
||||
static int IsInRTZMode( void ); //expensive. Please check gIsInRTZMode global instead.
|
||||
static void TestFinishAtExit(void);
|
||||
|
||||
|
||||
int doTest( const char* name )
|
||||
@@ -816,7 +815,6 @@ int main (int argc, const char * argv[])
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
atexit(TestFinishAtExit);
|
||||
|
||||
#if defined( __APPLE__ )
|
||||
struct timeval startTime;
|
||||
@@ -1993,7 +1991,3 @@ cl_uint RoundUpToNextPowerOfTwo( cl_uint x )
|
||||
return x+x;
|
||||
}
|
||||
|
||||
void TestFinishAtExit(void) {
|
||||
test_finish();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user