From 0575d3764fa4c7f56252bc8e37a6589ac9afdc89 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 15 Feb 2016 12:29:06 -0500 Subject: [PATCH] libCom/test: fixup RTEMS tests to run clean --- src/libCom/test/epicsStdioTest.c | 6 ++++++ src/libCom/test/epicsStdlibTest.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/libCom/test/epicsStdioTest.c b/src/libCom/test/epicsStdioTest.c index d649aa061..c2d7eb58a 100644 --- a/src/libCom/test/epicsStdioTest.c +++ b/src/libCom/test/epicsStdioTest.c @@ -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(); } diff --git a/src/libCom/test/epicsStdlibTest.c b/src/libCom/test/epicsStdlibTest.c index a55453ad1..d82f834b8 100644 --- a/src/libCom/test/epicsStdlibTest.c +++ b/src/libCom/test/epicsStdlibTest.c @@ -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'");