diff --git a/src/libCom/test/ringPointerTest.c b/src/libCom/test/ringPointerTest.c index 92401d123..65a349489 100644 --- a/src/libCom/test/ringPointerTest.c +++ b/src/libCom/test/ringPointerTest.c @@ -238,9 +238,11 @@ MAIN(ringPointerTest) testPlan(37); testSingle(); - epicsThreadSetPriority(epicsThreadGetIdSelf(), epicsThreadPriorityScanLow); + if (prio) + epicsThreadSetPriority(epicsThreadGetIdSelf(), epicsThreadPriorityScanLow); testPair(0); testPair(1); - epicsThreadSetPriority(epicsThreadGetIdSelf(), prio); + if (prio) + epicsThreadSetPriority(epicsThreadGetIdSelf(), prio); return testDone(); }