From 958b40f74ccf5f5db5a9efed6d9cfd51cf27816e Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 5 Jun 2012 15:53:32 -0500 Subject: [PATCH] libCom: Silence errlog when running tests Removes extraneous noise. --- src/libCom/misc/epicsUnitTest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libCom/misc/epicsUnitTest.c b/src/libCom/misc/epicsUnitTest.c index 9feb59195..21f3b5b1c 100644 --- a/src/libCom/misc/epicsUnitTest.c +++ b/src/libCom/misc/epicsUnitTest.c @@ -23,6 +23,7 @@ #include "epicsExit.h" #include "epicsTime.h" #include "ellLib.h" +#include "errlog.h" #include "cantProceed.h" typedef struct { @@ -64,6 +65,7 @@ void testPlan(int plan) { planned = plan; tested = passed = failed = skipped = bonus = 0; todo = NULL; + eltc(0); /* Silence errlog output */ if (plan) printf("1..%d\n", plan); epicsMutexUnlock(testLock); } @@ -73,7 +75,7 @@ int testOkV(int pass, const char *fmt, va_list pvar) { epicsMutexMustLock(testLock); tested++; if (pass) { - result += 4; /* skip "not " */ + result += 4; /* skip "not " */ passed++; if (todo) bonus++;