libCom/test: fixup RTEMS tests to run clean
This commit is contained in:
committed by
Michael Davidsaver
parent
48da96cce5
commit
0575d3764f
@@ -127,6 +127,12 @@ MAIN(epicsStdioTest)
|
||||
testPlan(163);
|
||||
#endif
|
||||
testEpicsSnprintf();
|
||||
#ifdef __rtems__
|
||||
/* ensure there is a writeable area */
|
||||
mkdir( "/tmp", S_IRWXU );
|
||||
testStdoutRedir("/tmp/report");
|
||||
#else
|
||||
testStdoutRedir("report");
|
||||
#endif
|
||||
return testDone();
|
||||
}
|
||||
|
||||
@@ -421,8 +421,14 @@ MAIN(epicsStdlibTest)
|
||||
testOk(epicsScanDouble("NAN", &d) && isnan(d), "Double 'NAN'");
|
||||
testOk(epicsScanFloat("Nan", &f) && isnan(f), "Float 'Nan'");
|
||||
testOk(epicsScanDouble("Nan", &d) && isnan(d), "Double 'Nan'");
|
||||
#ifdef __rtems__
|
||||
testTodoBegin("RTEMS (newlib) parser doesn't recognise 'nan()'");
|
||||
#endif
|
||||
testOk(epicsScanFloat("nan()", &f) && isnan(f), "Float 'nan()'");
|
||||
testOk(epicsScanDouble("nan()", &d) && isnan(d), "Double 'nan()'");
|
||||
#ifdef __rtems__
|
||||
testTodoEnd();
|
||||
#endif
|
||||
|
||||
testOk(epicsScanFloat("INF", &f) && f == epicsINF,
|
||||
"Float 'INF'");
|
||||
|
||||
Reference in New Issue
Block a user