Bug 3642

Summary: fc6: testLineStepping(frysk.rt.tests.TestRunState)
Product: frysk Reporter: Chris Moller <cmoller>
Component: generalAssignee: Mike Cvet <mcvet>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2654    

Description Chris Moller 2006-12-04 18:13:05 UTC
testLineStepping(frysk.rt.tests.TestRunState)junit.framework.AssertionFailedError:
expected:<67> but was:<61>
   at frysk.rt.tests.TestRunState.stepAssertions(TestRunner)
   at frysk.rt.tests.TestRunState$LockObserver.update(TestRunner)
   at java.util.Observable.notifyObservers(libgcj.so.7rh)
   at frysk.rt.RunState.updateExecuted(TestRunner)
   at frysk.proc.Task.notifyInstruction(TestRunner)
   at frysk.proc.TaskState$Running.handleTrappedEvent(TestRunner)
   at frysk.proc.Task.processTrappedEvent(TestRunner)
   at frysk.proc.LinuxHost$PollWaitOnSigChld$5.stopped(TestRunner)
   at frysk.sys.Wait.waitAllNoHang(TestRunner)
   at frysk.proc.LinuxHost$PollWaitOnSigChld.execute(TestRunner)
   at frysk.event.EventLoop.runEventLoop(TestRunner)
   at frysk.event.EventLoop.runPolling(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.proc.TestLib.assertRunUntilStop(TestRunner)
   at frysk.rt.tests.TestRunState.testLineStepping(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
Comment 1 Andrew Cagney 2006-12-04 18:24:45 UTC
Check the debug info!
Comment 2 Mike Cvet 2006-12-04 19:04:13 UTC
Just fixed:

Log message:
        2006-12-03  Mike Cvet  <mcvet@redhat.com>
        
        * RunState.java (lineLoopCount): Removed.
        (numSteppingTasks): Removed.
        (lineCountMap): Added. Need to keep track of iterations on a Task-
specific
        level.
        (setUpStep): Update lineCountMap.
        (stepIn): Updated to use lineCountMap, removed redundant lineMap 
putting.
        (stepCompleted): Clear out lineCountMap.
        (updateExecuted): No longer let state == STOPPED get through.
        (requestAdd): Update numRunningTasks here.
        * TestRunState.java (stepAssertions): Fixed up a couple assertions.
        * TestStepping.java: Removed debugging prints.
        (stepAssertions): Fixed assertions.
        (LockObserver.update): Cleaned up.