Bug 3141

Summary: The TestX8664Regs.java case causes many failures in TestRunner.
Product: frysk Reporter: Yong Zheng <zhengyzy>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal CC: qiyaoltc, timoore, woodzltc
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target: X86_64
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 2127    
Attachments: The modified TestX8664Regs.java.

Description Yong Zheng 2006-08-28 09:19:06 UTC
During merging Test<ISA>Regs.java into one case TestRegs.java, we found one
nasty bug. After building frysk, run the following commands:
    #cd $BUILD/frysk-core
    #./TestRunner -l FINE frysk.proc.TestX8664Regs
  The case will pass. The case will pass even if you run "TestRunner -l FINE"
under $BUILD/frysk-core.
  However, if you modify the running sequence of TestX8664Regs in
$BUILD/frysk-core/frysk/core/JUnitTests.java from:
    list.add(frysk.proc.TestRun.class);
    list.add(frysk.proc.TestTaskClonedObserver.class);
    list.add(frysk.proc.TestTaskForkedObserver.class);
    list.add(frysk.proc.TestTaskObserverBlocked.class);
    list.add(frysk.proc.TestTaskObserverDetach.class);
    list.add(frysk.proc.TestTaskObserver.class);
    list.add(frysk.proc.TestTaskSyscallObserver.class);
    list.add(frysk.proc.TestTaskTerminateObserver.class);
    list.add(frysk.proc.TestX8664Modify.class);
    list.add(frysk.proc.TestX8664Regs.class);
to:
    list.add(frysk.proc.TestX8664Regs.class);
    list.add(frysk.proc.TestRun.class);
    list.add(frysk.proc.TestTaskClonedObserver.class);
    list.add(frysk.proc.TestTaskForkedObserver.class);
    list.add(frysk.proc.TestTaskObserverBlocked.class);
    list.add(frysk.proc.TestTaskObserverDetach.class);
    list.add(frysk.proc.TestTaskObserver.class);
    list.add(frysk.proc.TestTaskSyscallObserver.class);
    list.add(frysk.proc.TestTaskTerminateObserver.class);
    list.add(frysk.proc.TestX8664Modify.class);
.
Then you will get the bug like the following:
  Running testX8664Regs(frysk.proc.TestX8664Regs) ...PASS
  Running testCreateAttachedContinuedProc(frysk.proc.TestRun) ...PASS
  Running testCreateAttachedStoppedProc(frysk.proc.TestRun) ...PASS
  Running testTaskCloneObserver(frysk.proc.TestTaskClonedObserver) ...FAIL
    junit.framework.AssertionFailedError: event loop run explictly stopped  
(startChild (Sig_USR1))
  Running testTaskForkedObserver(frysk.proc.TestTaskForkedObserver) ...FAIL
    junit.framework.AssertionFailedError: event loop run explictly stopped
(startChild (Sig_USR1))
  .....
Comment 1 Yong Zheng 2006-08-28 10:27:34 UTC
Created attachment 1257 [details]
The modified TestX8664Regs.java.
Comment 2 Yong Zheng 2006-08-28 10:32:25 UTC
After we did some modification on TestX8664Regs.java, the bug can be fixed but
we do not know what caused the bug.
see the above attached file.

(In reply to comment #1)
> Created an attachment (id=1257)
> The modified TestX8664Regs.java.
>