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.
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(); } }
can this be closed ?