6
class DbgClientTest( unittest.TestCase ):
8
def testGetDebuggeeType( self ):
9
c, q = pykd.getDebuggeeType()
10
self.assertEqual( c, pykd.DEBUG_CLASS_USER_WINDOWS )
11
self.assertEqual( q, pykd.DEBUG_USER_WINDOWS_PROCESS )
13
def testIsKernelDebugging( self ):
14
self.assertFalse( pykd.isKernelDebugging() )
16
def testNumberProcessors( self ):
17
"""Number of processors can not be 0"""
18
self.assertNotEqual( 0, pykd.getNumberProcessors() )
20
def testPageSize( self ):
21
"""Size of memory page must be >= 4kb"""
22
self.assertTrue( pykd.getPageSize() >= 4*1024 )
24
def testIsDumpAnalyzing( self ):
25
self.assertFalse( pykd.isDumpAnalyzing() )
27
def testExecutionStatus( self ):
28
self.assertEqual( pykd.DEBUG_STATUS_BREAK, pykd.getExecutionStatus() )
29
pykd.setExecutionStatus( pykd.DEBUG_STATUS_GO )
31
self.assertEqual( pykd.DEBUG_STATUS_BREAK, pykd.getExecutionStatus() )
33
def testPdbFile( self ):
34
self.assertNotEqual( '', pykd.getPdbFile( target.module.begin() ) )
36
def testProcessorMode( self ):
37
self.assertNotEqual( '', pykd.getProcessorMode() )
38
self.assertNotEqual( '', pykd.getProcessorType() )
40
def testThreadList( self ):
41
self.assertNotEqual( 0, len(pykd.getThreadList()) )
43
def testSymbolsPath( self ):
44
self.assertNotEqual( '', pykd.symbolsPath() )