frysk.isa.corefiles
Class TestLinuxElfCorefile
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
frysk.junit.TestCase
frysk.testbed.TestLib
frysk.isa.corefiles.TestLinuxElfCorefile
- All Implemented Interfaces:
- Test
public class TestLinuxElfCorefile
- 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 |
TestLinuxElfCorefile
public TestLinuxElfCorefile()
testCoreFileCreated
public void testCoreFileCreated()
testElfCoreHeader
public void testElfCoreHeader()
testProgramSegmentHeader
public void testProgramSegmentHeader()
testAuxv
public void testAuxv()
testRegexSelectedMap
public void testRegexSelectedMap()
constructCore
private String constructCore(Proc ackProc)
- Given a Proc object, generate a core file from that given proc.
- Parameters:
ackProc
- - proc object to generate core from.
- Returns:
- - name of constructed core file.
giveMeAProc
private Proc giveMeAProc()
- Generate a process suitable for attaching to (ie detached when returned).
Stop the process, check that is is found in the frysk state machine, then
return a proc oject corresponding to that process.
- Returns:
- - Proc - generated process.
giveMeABlockedProc
private Proc giveMeABlockedProc()
getISA
private ISA getISA(Proc proc)
- Returns the ISA that corresponds to the given Proc
- Parameters:
Proc
- - the proc to test
- Returns:
- Isa - the Isa that corresponds to given proc.
getElf
private Elf getElf(String coreFileName)
findLowAddress
private int findLowAddress(long address,
MemoryMap[] maps)