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:
Kévin Petit
2020-03-02 15:06:44 +00:00
committed by GitHub
parent 7c82f6a9b8
commit b2eba77d42
23 changed files with 23 additions and 193 deletions

View File

@@ -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

View File

@@ -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();
}