Experimental Physics and Industrial Control System
On Friday 29 October 2010 10:24:18 Eric Norum wrote:
> So can we fix this somehow? I don't like seeing failure rates greater
> than 0.0%. I'm sure that others running the tests will also be confused
> by this, too.
Try this:
=== modified file 'src/libCom/test/epicsThreadOnceTest.c'
--- src/libCom/test/epicsThreadOnceTest.c 2010-10-05 19:27:37 +0000
+++ src/libCom/test/epicsThreadOnceTest.c 2010-10-29 15:43:59 +0000
@@ -93,7 +93,7 @@
testOk(runCount == NUM_ONCE_THREADS, "runCount = %d", runCount);
epicsEventSignal(go);
- epicsThreadSleep(0.1);
+ epicsThreadSleep(1.0);
testOk(doneCount == NUM_ONCE_THREADS, "doneCount = %d", doneCount);
testDiag("init was run by %s", initBy);
> On Oct 29, 2010, at 8:14 AM, Davidsaver, Michael wrote:
> >
> > I think this is noise caused by a test of the recursive once detection.
> > If a thread once call recurses the thread is suspended.
I completely disagree, the test that failed was run before the recursive
detection test.
I'm guessing that Eric is using a fairly slow CPU which took longer than 0.1
seconds for the ~8 context switches in the test to take place.
Please keep these discussions *on* the list, it's there for archival purposes
as much as anything; if people don't like the volume they can un-subscribe and
just follow tech-talk.
- Andrew
--
If a man is offered a fact which goes against his instincts, he will
scrutinize it closely, and unless the evidence is overwhelming, he will
refuse to believe it. If, on the other hand, he is offered something
which affords a reason for acting in accordance to his instincts, he
will accept it even on the slightest evidence. -- Bertrand Russell
- Replies:
- Re: RTEMS tests -- epicsThreadOnce broken? Eric Norum
- Re: RTEMS tests -- epicsThreadOnce broken? Eric Norum
- Navigate by Date:
- Prev:
Re: RTEMS tests -- epicsThreadOnce broken? Eric Norum
- Next:
Re: RTEMS tests -- epicsThreadOnce broken? Andrew Johnson
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: RTEMS tests -- epicsThreadOnce broken? Andrew Johnson
- Next:
Re: RTEMS tests -- epicsThreadOnce broken? Eric Norum
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024