From c8b60e0f1bcc8c4faf340fb283b61e96869aa0a5 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 29 Feb 2016 20:28:52 -0500 Subject: [PATCH] db/test: dbStressLock skip for RTEMS This test assumes that several threads with equal priority will all run eventually. This isn't true an UP target without time sliced scheduling (eg. RTEMS). --- src/ioc/db/test/dbStressLock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ioc/db/test/dbStressLock.c b/src/ioc/db/test/dbStressLock.c index 376587975..03a8e8b54 100644 --- a/src/ioc/db/test/dbStressLock.c +++ b/src/ioc/db/test/dbStressLock.c @@ -228,6 +228,11 @@ MAIN(dbStressTest) testPlan(80+nworkers*3); +#if defined(__rtems__) + testSkip(80+nworkers*3, "Test assumes time sliced preempting scheduling"); + return testDone(); +#endif + priv = callocMustSucceed(nworkers, sizeof(*priv), "no memory"); testDiag("lock set stress test");