frysk.proc.live
Class TestTaskObserverCode
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
frysk.junit.TestCase
frysk.testbed.TestLib
frysk.proc.live.TestTaskObserverCode
- All Implemented Interfaces:
- Test
public class TestTaskObserverCode
- extends TestLib
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.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 |
child
private Offspring child
task
private Task task
proc
private Proc proc
dummySig
private static final Signal dummySig
TestTaskObserverCode
public TestTaskObserverCode()
testCode
public void testCode()
throws Exception
- Throws:
Exception
testCodeSignalInterrupt
public void testCodeSignalInterrupt()
throws Exception
- Throws:
Exception
testInstallCodeDuringCode
public void testInstallCodeDuringCode()
throws Exception
- Throws:
Exception
testCodeRemovedInHit
public void testCodeRemovedInHit()
throws Exception
- Throws:
Exception
getGlobalLabelAddress
long getGlobalLabelAddress(String label)
- Returns the address of a global label by quering the the Proc
main Task's Dwlf.
breakTest
private void breakTest(int argc)
testBreakDivZero
public void testBreakDivZero()
testBreakIllegalAddress
public void testBreakIllegalAddress()
testBreakIllegalInstruction
public void testBreakIllegalInstruction()
testBreakSignalTerminate
public void testBreakSignalTerminate()
testBreakSignalIgnore
public void testBreakSignalIgnore()
testViewBreakpointMemory
public void testViewBreakpointMemory()
throws Exception
- Throws:
Exception
testViewBreakpointMap
public void testViewBreakpointMap()
throws Exception
- Throws:
Exception
testMultiTaskUpdate
public void testMultiTaskUpdate()
throws Exception
- Throws:
Exception
testMultiTaskUpdateCalledSeveralTimes
public void testMultiTaskUpdateCalledSeveralTimes()
throws Exception
- Throws:
Exception
testMultiTaskUpdateUnblockDelete
public void testMultiTaskUpdateUnblockDelete()
throws Exception
- Throws:
Exception
testCodeOverFork
public void testCodeOverFork()
throws Exception
- Throws:
Exception
requestDummyRun
void requestDummyRun()
throws Errno
- Request that that the child runs its dummy function which will
call the pb1 and pb1 functions. Done by sending it the
dummySig. To observe this event one needs to put a code observer
on the dummy (), bp1_func () and/or bp2_func () functions.
- Throws:
Errno
requestDummyRun
void requestDummyRun(Task t)
requestDummyRun
void requestDummyRun(int id)
- Request that that given thread of the child runs its dummy
function which will call the pb1 and pb1 functions. Done by
sending it the dummySig. To observe this event one needs to put
a code observer on the dummy (), pb1_func () and/or pb2_func ()
functions.
getFunctionEntryAddress
long getFunctionEntryAddress(String func)
throws ElfException
- Returns the address of the requested function through
query the Proc Elf and DwarfDie. Asserts that the function
has only 1 entry point.
- Throws:
ElfException
getFunctionDie
DwarfDie getFunctionDie(String func)
throws ElfException
- Throws:
ElfException