Bug 4951 - testHpdDisplayCommands(frysk.hpd.TestDisplayCommand)frysk.expunit.TimeoutException: Timeout of 5 expired
Summary: testHpdDisplayCommands(frysk.hpd.TestDisplayCommand)frysk.expunit.TimeoutExce...
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-23 02:45 UTC by Andrew Cagney
Modified: 2007-08-29 22:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


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:45:06 UTC
testHpdDisplayCommands(frysk.hpd.TestDisplayCommand)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.TestDisplayCommand.testHpdDisplayCommands(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

looking at the trace log:

22-Aug-07 10:42:41 PM frysk.expunit.Expect expectMilliseconds
FINE: frysk.expunit.Expect@22f078 find display.*2:.*temp = .*\(fhpd\)  in
<<display int_21*2
frysk.debuginfo.VariableOptimizedOutException
   at frysk.debuginfo.LocationExpression.decode(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator$AccessMemory.getBufferAddr(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator$AccessMemory.getInt(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator.get(fhpd)
   at frysk.debuginfo.DebugInfoEvaluator.get(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.expr.CppTreeParser.expr(fhpd)
   at frysk.debuginfo.DebugInfo.print(fhpd)
   at frysk.rt.DisplayValue.refresh(fhpd)
   at frysk.rt.UpdatingDisplayValue.refresh(fhpd)
   at frysk.rt.DisplayValue.<init>(fhpd)
   at frysk.rt.UpdatingDisplayValue.<init>(fhpd)
   at frysk.rt.DisplayManager.createDisplay(fhpd)
   at frysk.hpd.DisplayCommand.handle(fhpd)
   at frysk.hpd.CLI.execCommand(fhpd)
   at frysk.bindir.fhpd.main(fhpd)
Internal debugger error:
(fhpd) >>?

since the intent here isn't to test optimization but rather variable display the
test can probably be changed to use the program funit-rt-varchange.c (like
TestDisplayValue) which is more robust to this problem.
Comment 1 Adam Jocksch 2007-08-29 22:40:48 UTC
This has been fixed, TestDisplayCommand now uses funit-rt-varchange.

ChangeLog:
2007-08-29  Adam Jocksch  <ajocksch@redhat.com>

	* DisplayCommand.java (handle): Now uses Value.toPrint().
	* TestDisplayCommand.java (testHpdDisplayCommands): Now uses
	funit-rt-varchange instead of hpd-c, marked unresolved 4941.