Bug 4949 - testHpdBreakpointLibrary(frysk.hpd.TestBreakpoints)frysk.expunit.TimeoutException: Timeout of 5 expired
Summary: testHpdBreakpointLibrary(frysk.hpd.TestBreakpoints)frysk.expunit.TimeoutExcep...
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Tim Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 02:22 UTC by Andrew Cagney
Modified: 2007-09-07 13:46 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2007-08-23 02:22:00 UTC
Sometimes:

testHpdBreakpointLibrary(frysk.hpd.TestBreakpoints)frysk.expunit.TimeoutException:
Timeout of 5 expired
   at frysk.expunit.Expect.expectMilliseconds(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.expunit.Expect.expect(TestRunner)
   at frysk.hpd.TestBreakpoints.testHpdBreakpointLibrary(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

Here's the relevant extract from a failing run:

FINE: frysk.expunit.Expect@3c1e88 find where.*#0.* (__)?sin \(\).*\(fhpd\)  in
<<where
#0 0x08048638 in doubleFun(double a = 0.0,double b = 0.0)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/pkglibdir/test1.c#37
#1 0x0804877e in main(int argc = 134519152,* argv = 134519380)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/pkglibdir/test1.c#78
#2 0x00c2d4e4 in __libc_start_main () from /lib/libc-2.4.so
#3 0x08048541 in _start () from
/home/scratch/frysk/common/native/frysk-core/frysk/pkglibdir/test1
(fhpd) >>?

compared to a run that passed:

22-Aug-07 10:17:19 PM frysk.expunit.Expect expectMilliseconds
FINE: frysk.expunit.Expect@23ce88 find where.*#0.* (__)?sin \(\).*\(fhpd\)  in
<<where
#0 0x00d56a78 in __sin () from /lib/libm-2.4.so
#1 0x08048627 in doubleFun(double a = 0.0,double b = 0.0)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/pkglibdir/test1.c#37
#2 0x0804877e in main(int argc = 134519152,* argv = 134519380)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/pkglibdir/test1.c#78
#3 0x00c2d4e4 in __libc_start_main () from /lib/libc-2.4.so
#4 0x08048541 in _start () from
/home/scratch/frysk/common/native/frysk-core/frysk/pkglibdir/test1
(fhpd) >>?
Comment 1 Tim Moore 2007-09-07 13:46:01 UTC
The "where" command in the test was being executed before the frame, debug info,
etc. data structures were initialized. I changed the output of the breakpoint
hit message to happen after all the various breakpoint handler methods are run.