Bug 1834

Summary: check that back-to-back attaches (i.e., addObservers) work
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal CC: swagiaal
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1553    

Description Andrew Cagney 2005-11-09 04:16:07 UTC
 
Comment 1 Andrew Cagney 2005-11-09 19:11:59 UTC
2005-11-09  Andrew Cagney  <cagney@redhat.com>

        * ProcState.java: Refactor .DetachingAllTasks into Detaching that
        contains .state and .AllTasks.  When attaching handle the deletion
        of an observer.
        * TaskState.java: Add transitions between attaching and detaching
        states.
        * TestTaskAttachedObserver.java: Add .testDeletedAttach,
        .testBackToBackAttachAttachMainTask, and
        .testBackToBackAttachDetachMainTask.

        * ProcState.java: Refactor .AttachingToMainTask, and
        .AttachingToOtherTasks into .Attaching class containing .state,
        .allAttached, .ToMainTask and .ToOtherTasks.
Comment 2 Andrew Cagney 2005-11-11 03:16:38 UTC
2005-11-10  Andrew Cagney  <cagney@redhat.com>

        * TestTaskAttachedObserver.java: Add .testDeletedAttachOtherTask,
        and .testBackToBackAttachDetachOtherTask.
        * ProcState.java (Detaching.state(Proc,Collection): Add.  When
        part way through an attach, only detach attached tasks.

        * TestTaskAttachedObserver.java: Add .attachDetachTask,
        .detachExitingTask, .attachDeadTask, .attachDieingTask,
        .attachToAttachedTask, .backToBackAttachAttachTask,
        .backToBackAttachDetachTask, .deletedAttachTask.  Refactor
        existing tests to use.