Bug 3141 - The TestX8664Regs.java case causes many failures in TestRunner.
Summary: The TestX8664Regs.java case causes many failures in TestRunner.
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2127
  Show dependency treegraph
 
Reported: 2006-08-28 09:19 UTC by Yong Zheng
Modified: 2006-11-28 16:51 UTC (History)
3 users (show)

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


Attachments
The modified TestX8664Regs.java. (2.40 KB, text/plain)
2006-08-28 10:27 UTC, Yong Zheng
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
>