errlog in tests

Take eltc(0) out of testPlan() and explicitly add it to those tests
that should suppress expected errlog output.
This commit is contained in:
Andrew Johnson
2012-07-06 17:47:56 -05:00
parent 0597f9c1c8
commit 3bfc6dcf64
4 changed files with 8 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
#include <stdio.h>
#include <string.h>
#include "errlog.h"
#include "epicsEvent.h"
#include "epicsExit.h"
#include "epicsMutex.h"
@@ -102,7 +103,7 @@ MAIN(epicsThreadOnceTest)
testOk(doneCount == NUM_ONCE_THREADS, "doneCount = %d", doneCount);
testDiag("init was run by %s", initBy);
testDiag("Expecting thread recurse to suspend:");
eltc(0);
tid = epicsThreadCreate("recurse", epicsThreadPriorityMedium,
epicsThreadGetStackSize(epicsThreadStackSmall),
recurseThread, 0);
@@ -111,5 +112,6 @@ MAIN(epicsThreadOnceTest)
} while (!epicsThreadIsSuspended(tid));
testPass("Recursive epicsThreadOnce() detected");
eltc(1);
return testDone();
}