Bug 4985 - testFhpdVirtualStackTraceWithScopes(frysk.hpd.TestStackCommands)
Summary: testFhpdVirtualStackTraceWithScopes(frysk.hpd.TestStackCommands)
Status: ASSIGNED
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-31 22:33 UTC by Andrew Cagney
Modified: 2007-11-20 18:35 UTC (History)
1 user (show)

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-31 22:33:03 UTC
testFhpdVirtualStackTraceWithScopes(frysk.hpd.TestStackCommands)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.TestStackCommands.testFhpdVirtualStackTraceWithScopes(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

$ gcc --version
gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-51)

FINE: frysk.expunit.Expect@4afdc8 find <<.*var3.*var2.*var1.*>> in <<(fhpd)
where -scopes
WhereCommand.handle() [-scopes]
WhereCommand.handle() printScopes = true
#0.1 0x080483af in third(int arg3 = < ERROR >)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/pkglibdir/funit-inlined.c#6
 {
  {
   int var3 = < value unavailable at pc=0x80483af> line#< error >
   int * a = < value unavailable at pc=0x80483af> line#< error >
  }
 }
#0.2 0x080483af in second(int arg2 = < ERROR >)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/pkglibdir/funit-inlined.c#6
 {
  {
   int var2 = < value unavailable at pc=0x80483af> line#< error >
  }
 }
#0.3 0x080483af in first(int arg1 = < ERROR >)
/home/scratch/frysk/common/native/frysk-core/../../frysk/frysk-core/frysk/p>>?


Bumping up the timeout gets it to pass.
Comment 1 Mark Wielaard 2007-10-10 14:48:53 UTC
Rewriting the regex expect as three separate ones reduces the matching time a
lot for me (but the original didn't timeout either):

diff -u -r1.11 TestStackCommands.java
--- frysk-core/frysk/hpd/TestStackCommands.java 4 Oct 2007 17:23:04 -0000      1.11
+++ frysk-core/frysk/hpd/TestStackCommands.java 10 Oct 2007 13:59:42 -0000
@@ -87,19 +87,15 @@
     }
     
     public void testFhpdVirtualStackTraceWithScopes () {
-       // This test is very very slow.
-       if (unresolved(4985))
-           return;
        Proc proc = CoreFileAtSignal
            .constructCore("funit-inlined");
         e = new HpdTestbed("core." + proc.getPid(), "Attached to core file.*");
         
         e.send("where -scopes\n");
         
-        e.expect (".*var3" +
-                 ".*var2" +
-                 ".*var1" +
-                 ".*");
+        e.expect (".*var3");
+        e.expect (".*var2");
+        e.expect (".*var1");
         e.close();
     }
 }
Comment 2 Sami Wagiaalla 2007-11-20 18:35:59 UTC
can this be closed ?