testAsync(frysk.event.TestEventLoop)junit.framework.AssertionFailedError: dummy signal handler run at frysk.event.TestEventLoop$14.execute(funit) at frysk.event.EventLoop.runEventLoop(funit) at frysk.event.EventLoop.runPolling(funit) at frysk.event.TestEventLoop.testAsync(funit) at frysk.junit.Runner.runCases(funit) at frysk.junit.Runner.runArchCases(funit) at funit.main(funit)
FWIW, fails when run under install/libexec/frysk/funit, passes when run from build/frysk-core/TestRunner frysk.event.TestEventLoop
This does not occure in the build tree. This does not occure when run stand-alone.
This fails, reducing ... /home/scratch/frysk/install/libexec/frysk/funit frysk.junit.TestPaths inua.eio.TestGet inua.eio.TestMmap inua.eio.TestPut inua.eio.TestWordSize inua.util.TestPool lib.dw.tests.TestDwfl lib.elf.tests.TestElf lib.opcodes.tests.TestOpcodes frysk.sys.proc.TestAuxv frysk.sys.proc.TestCmdLine frysk.sys.proc.TestMaps frysk.sys.proc.TestStatus frysk.sys.StressMapRead frysk.sys.TestCallPtrace frysk.sys.TestPtraceByteBuffer frysk.sys.TestPty frysk.sys.TestSigSet frysk.cli.hpd.TestSetCreation frysk.cli.hpd.TestSetParser frysk.dom.TestDOM frysk.event.TestEventLoop
Compare: $ funit frysk.event.TestEventLoop Running testEventLoop(frysk.event.TestEventLoop) ...PASS Running testPeriodicTimer(frysk.event.TestEventLoop) ...PASS Running testTimerRemoval(frysk.event.TestEventLoop) ...PASS Running testScheduleBeforeRun(frysk.event.TestEventLoop) ...PASS Running testSignalHandler(frysk.event.TestEventLoop) ...PASS Running testAsync(frysk.event.TestEventLoop) ...PASS to: $ funit frysk.sys.StressMapRead frysk.event.TestEventLoop Running testMapRead(frysk.sys.StressMapRead) ...<<BROKEN http://sourceware.org/bugzilla/show_bug.cgi?id=3043 >>PASS Running testEventLoop(frysk.event.TestEventLoop) ...PASS Running testPeriodicTimer(frysk.event.TestEventLoop) ...PASS Running testTimerRemoval(frysk.event.TestEventLoop) ...PASS Running testScheduleBeforeRun(frysk.event.TestEventLoop) ...PASS Running testSignalHandler(frysk.event.TestEventLoop) ...PASS Running testAsync(frysk.event.TestEventLoop) ...FAIL junit.framework.AssertionFailedError: dummy signal handler run The only difference is the presence of a disabled test.
Tear down code in frysk.sys.StressMapRead was leaving stray signals and waiptpid events pending. Lead to scrambling of EventLoop - which got the signal Index: frysk-sys/frysk/sys/ChangeLog 2006-10-12 Andrew Cagney <cagney@redhat.com> * StressMapRead.java (setUp): Delete, code merged into test proper. Add broken due to 3360 - does not drain pending events.
It's back with a full testsulte run.
$ funit frysk.sys.TestCallPtrace frysk.sys.TestPtraceByteBuffer frysk.event.TestEventLoop also fails
*** Bug 3360 has been marked as a duplicate of this bug. ***
Attempt two: Index: frysk-sys/frysk/sys/ChangeLog 2006-10-12 Andrew Cagney <cagney@redhat.com> * cni/TestLib.cxx (drainSignal): New. * TestLib.java (tearDown): New. (drainSignal): New. * StressMapRead.java (tearDown): Use TestLib.tearDown, remove broken due to 3360. * TestCallPtrace.java (tearDown): New. Use TestLib.tearDown. * TestPtraceByteBuffer.java: Use TestLib.tearDown.