From 6fffcf998575a7d28ee456578fc5dcba98421a02 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 24 Aug 2015 10:32:37 -0500 Subject: [PATCH] Make dbLockTest work when LOCKSET_DEBUG undefined --- src/ioc/db/test/dbLockTest.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ioc/db/test/dbLockTest.c b/src/ioc/db/test/dbLockTest.c index 042917546..c51481d0d 100644 --- a/src/ioc/db/test/dbLockTest.c +++ b/src/ioc/db/test/dbLockTest.c @@ -151,7 +151,9 @@ static void testMultiLock(void) { dbCommon *prec[8]; dbLocker *plockA; +#ifdef LOCKSET_DEBUG epicsThreadId myself = epicsThreadGetIdSelf(); +#endif testDiag("Test multi-locker function (lock everything)"); @@ -404,7 +406,11 @@ static void testLinkNOP(void) MAIN(dbLockTest) { +#ifdef LOCKSET_DEBUG testPlan(99); +#else + testPlan(87); +#endif testSets(); testSingleLock(); testMultiLock();