frysk.testbed
Class Offspring

java.lang.Object
  extended by frysk.testbed.Offspring
Direct Known Subclasses:
DaemonBlockedAtEntry, DaemonBlockedAtSignal, SynchronizedOffspring

public abstract class Offspring
extends Object

A generic test process created by this testbed.


Method Summary
 void assertIs(StatState state)
          The Offspring's main thread is in (or transitions to) the specified state.
 Proc assertRunToFindProc()
          Find/return the child's Proc by running the event-loop.
 void assertRunUntil(StatState state)
          Run the event-loop until the offspring's main thread is in the specified state.
 void assertSendStop()
          Stop a Task with a SIGSTOP and then wait until it has stopped..
 Task findTaskUsingRefresh(boolean mainTask)
          Find the child's Proc's main or non-main Task, polling /proc if necessary.
abstract  ProcessIdentifier getPid()
          Return the process's system identifier.
 boolean kill()
          Attempt to kill the child.
 void signal(Signal sig)
          Send the child the sig.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPid

public abstract ProcessIdentifier getPid()
Return the process's system identifier.


signal

public void signal(Signal sig)
Send the child the sig.


kill

public boolean kill()
Attempt to kill the child. Return false if the child doesn't appear to exist.


assertRunToFindProc

public Proc assertRunToFindProc()
Find/return the child's Proc by running the event-loop.


findTaskUsingRefresh

public Task findTaskUsingRefresh(boolean mainTask)
Find the child's Proc's main or non-main Task, polling /proc if necessary.


assertIs

public void assertIs(StatState state)
The Offspring's main thread is in (or transitions to) the specified state.


assertRunUntil

public void assertRunUntil(StatState state)
Run the event-loop until the offspring's main thread is in the specified state.


assertSendStop

public void assertSendStop()
Stop a Task with a SIGSTOP and then wait until it has stopped..