frysk.sys.proc
Class TestMaps

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.sys.proc.TestMaps
All Implemented Interfaces:
Test

public class TestMaps
extends TestCase

Test the MapsBuilder against a predefined set of maps buffers.


Nested Class Summary
private  class TestMaps.Map
          An unpacked map.
 
Field Summary
(package private) static boolean F
           
(package private) static boolean T
           
 
Constructor Summary
TestMaps()
           
 
Method Summary
private  void check(String[] strings, TestMaps.Map[] map)
           
 void testAMD64()
          Verify an amd64 memory map.
 void testIA32()
          Check that an IA-32 map can be parsed.
 void testIA64()
          Check that an IA-64 map can be parsed.
 void testNative()
          Try reading the processes map, and check that the LocalMemory's code and data is present.
 void testPPC32()
          Verify a 32-bit PowerPC map.
 void testPPC64()
          Verify that a 64-bit PowerPC map works.
 
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, setUp, tearDown, 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
 

Field Detail

T

static final boolean T
See Also:
Constant Field Values

F

static final boolean F
See Also:
Constant Field Values
Constructor Detail

TestMaps

public TestMaps()
Method Detail

check

private void check(String[] strings,
                   TestMaps.Map[] map)

testIA32

public void testIA32()
Check that an IA-32 map can be parsed.


testIA64

public void testIA64()
Check that an IA-64 map can be parsed.


testAMD64

public void testAMD64()
Verify an amd64 memory map.


testPPC32

public void testPPC32()
Verify a 32-bit PowerPC map.


testPPC64

public void testPPC64()
Verify that a 64-bit PowerPC map works.


testNative

public void testNative()
Try reading the processes map, and check that the LocalMemory's code and data is present.