frysk.testbed
Class LegacyOffspring

java.lang.Object
  extended by frysk.testbed.Offspring
      extended by frysk.testbed.SynchronizedOffspring
          extended by frysk.testbed.LegacyOffspring

public class LegacyOffspring
extends SynchronizedOffspring

XXX: Create a process running the funit-legacy program. Some tests require querks only implemented by that program.


Field Summary
static Signal CHILD_ACK
           
static Signal PARENT_ACK
           
 
Fields inherited from class frysk.testbed.SynchronizedOffspring
START_ACK
 
Method Summary
 LegacyOffspring assertSendAddClonesWaitForAcks(int count)
          Add many Tasks; wait for acknowledgement.
 void assertSendAddCloneWaitForAcks()
          Add a Task; wait for acknowledgement.
 void assertSendAddForkWaitForAcks()
          Add a child Proc; wait for acknowledgement
 void assertSendDelCloneWaitForAcks()
          Delete a Task.
 void assertSendDelForkWaitForAcks()
          Delete a child Proc.
 void assertSendExecCloneWaitForAcks()
          Request that the cloned task perform an exec.
 void assertSendExecWaitForAcks()
          Request that the main task perform an exec; wait for the acknowledge.
 void assertSendFryParentWaitForAcks()
          Kill the parent, expect an ack from the child (there had better be a child).
 void assertSendZombieForkWaitForAcks()
          Terminate a fork Proc (creates zombie).
static LegacyOffspring createAttachedChild()
          Create an attached slave-process that is a child of this process.
static LegacyOffspring createChild()
          Create a slave-process that is a child of this process.
static LegacyOffspring createDaemon()
          Create a slave-process that is a child of this process.
static LegacyOffspring createDaemon(boolean busy)
          Create a slave-process that is a child of this process.
static File getExecutable()
          Return the program executable that will be run.
 void reap()
          Reap the process..
 Signal[] requestClone()
          Request that a task be added.
 Signal[] requestExec()
          Request that the main task perform an exec.
 Signal[] requestFork()
          Request that a child Proc be added.
 
Methods inherited from class frysk.testbed.SynchronizedOffspring
getPid
 
Methods inherited from class frysk.testbed.Offspring
assertIs, assertRunToFindProc, assertRunUntil, assertSendStop, findTaskUsingRefresh, kill, signal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHILD_ACK

public static final Signal CHILD_ACK

PARENT_ACK

public static final Signal PARENT_ACK
Method Detail

assertSendAddCloneWaitForAcks

public void assertSendAddCloneWaitForAcks()
Add a Task; wait for acknowledgement.


requestClone

public Signal[] requestClone()
Request that a task be added.


assertSendAddClonesWaitForAcks

public LegacyOffspring assertSendAddClonesWaitForAcks(int count)
Add many Tasks; wait for acknowledgement.


assertSendDelCloneWaitForAcks

public void assertSendDelCloneWaitForAcks()
Delete a Task.


assertSendAddForkWaitForAcks

public void assertSendAddForkWaitForAcks()
Add a child Proc; wait for acknowledgement


requestFork

public Signal[] requestFork()
Request that a child Proc be added.


assertSendDelForkWaitForAcks

public void assertSendDelForkWaitForAcks()
Delete a child Proc.


assertSendZombieForkWaitForAcks

public void assertSendZombieForkWaitForAcks()
Terminate a fork Proc (creates zombie).


assertSendFryParentWaitForAcks

public void assertSendFryParentWaitForAcks()
Kill the parent, expect an ack from the child (there had better be a child).


assertSendExecWaitForAcks

public void assertSendExecWaitForAcks()
Request that the main task perform an exec; wait for the acknowledge.


requestExec

public Signal[] requestExec()
Request that the main task perform an exec.


assertSendExecCloneWaitForAcks

public void assertSendExecCloneWaitForAcks()
Request that the cloned task perform an exec.


reap

public void reap()
Reap the process.. Kill the process and then wait for and consume all of that processes waitpid events.


createChild

public static LegacyOffspring createChild()
Create a slave-process that is a child of this process.


createDaemon

public static LegacyOffspring createDaemon()
Create a slave-process that is a child of this process.


createDaemon

public static LegacyOffspring createDaemon(boolean busy)
Create a slave-process that is a child of this process.


createAttachedChild

public static LegacyOffspring createAttachedChild()
Create an attached slave-process that is a child of this process.


getExecutable

public static File getExecutable()
Return the program executable that will be run.