frysk.testbed
Class SynchronizedOffspring

java.lang.Object
  extended by frysk.testbed.Offspring
      extended by frysk.testbed.SynchronizedOffspring
Direct Known Subclasses:
ExecOffspring, FunitThreadsOffspring, LegacyOffspring, SlaveOffspring, TestTaskSyscallObserver.PipeReadChild

public class SynchronizedOffspring
extends Offspring

Create an offspring that has synchronized with this test-framework using a signal. The synchronization ensures that the test process is ready before the test proceeds.


Field Summary
private static Log fine
           
private  ProcessIdentifier pid
           
static Signal START_ACK
           
 
Constructor Summary
protected SynchronizedOffspring(OffspringType type, Signal sig, String[] argv)
          Create a child process (using startChild), return once the process is running.
  SynchronizedOffspring(Signal sig, String[] argv)
           
 
Method Summary
 ProcessIdentifier getPid()
          Return the ProcessID of the child.
 
Methods inherited from class frysk.testbed.Offspring
assertIs, assertRunToFindProc, assertRunUntil, assertSendStop, findTaskUsingRefresh, kill, signal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fine

private static final Log fine

START_ACK

public static final Signal START_ACK

pid

private final ProcessIdentifier pid
Constructor Detail

SynchronizedOffspring

protected SynchronizedOffspring(OffspringType type,
                                Signal sig,
                                String[] argv)
Create a child process (using startChild), return once the process is running. Wait for acknowledge SIG.


SynchronizedOffspring

public SynchronizedOffspring(Signal sig,
                             String[] argv)
Method Detail

getPid

public ProcessIdentifier getPid()
Return the ProcessID of the child.

Specified by:
getPid in class Offspring