frysk.proc
Class TestExec

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.testbed.TestLib
                  extended by frysk.proc.TestExec
All Implemented Interfaces:
Test

public class TestExec
extends TestLib

Test the exec event. The exec needs to completely replace the existing (possibly multi-threaded) process with an entirely new one.


Nested Class Summary
protected  class TestExec.ExecBlockCounter
          Count the number of task exec calls.
 
Field Summary
 
Fields inherited from class frysk.testbed.TestLib
host
 
Constructor Summary
TestExec()
           
 
Method Summary
 void testAttachedMultipleChildExec()
          A multiple threaded program's child performs an exec, check that it is correctly tracked.
 void testAttachedMultipleParentExec()
          A multiple threaded program performs an exec, check that it is correctly tracked.
 void testAttachedSingleExec()
          A single threaded program performs an exec, check that it is correctly tracked.
 void testProcBlockExec()
          A simple (single threaded) program performs an exec, check that the exec blocks and resumes the process.
 void testTaskBlockExec()
          A multi-tasked program's non main task performs an exec, check that it is correctly tracked.
 
Methods inherited from class frysk.testbed.TestLib
addToTearDown, addToTearDown, assertRunToFindProc, assertRunUntilStop, assertRunUntilStop, getExecPath, isChildOf, isChildOfMine, isDescendantOf, isDescendantOfMine, runPending, setUp, tearDown
 
Methods inherited from class frysk.junit.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, getTimeoutMilliseconds, getTimeoutSeconds, missing32or64, unresolved, unresolvedOffUtrace, unresolvedOn32On64, unresolvedOnIA32, unresolvedOnPPC, unresolvedOnUtrace, unresolvedOnx8664, unsupported
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestExec

public TestExec()
Method Detail

testProcBlockExec

public void testProcBlockExec()
A simple (single threaded) program performs an exec, check that the exec blocks and resumes the process.


testTaskBlockExec

public void testTaskBlockExec()
A multi-tasked program's non main task performs an exec, check that it is correctly tracked. This case is messy, the exec blows away all but the exec task, making the exec task the new main task.


testAttachedSingleExec

public void testAttachedSingleExec()
A single threaded program performs an exec, check that it is correctly tracked.


testAttachedMultipleParentExec

public void testAttachedMultipleParentExec()
A multiple threaded program performs an exec, check that it is correctly tracked.


testAttachedMultipleChildExec

public void testAttachedMultipleChildExec()
A multiple threaded program's child performs an exec, check that it is correctly tracked.