pykd/test/scripts/clienttest.py
SND\kernelnet_cp 4e072f3ef5 [0.1.x] added : go routine
[0.1.x] added : step routine
[0.1.x] added : trace routine
[0.1.x] added : waitForEvent routine ( Wait for events that breaks into the debugger )
[0.1.x] added : setExecutionStatus routine ( Requests that the debugger engine enter an executable state )
[0.1.x] added : getExecutionStatus routine ( Return information about the execution status of the debugger )


git-svn-id: https://pykd.svn.codeplex.com/svn@70639 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:06:26 +04:00

30 lines
857 B
Python

import unittest
import target
import pykd
class DbgClientTest( unittest.TestCase ):
def testGetDebuggeeType( self ):
c, q = pykd.getDebuggeeType()
self.assertEqual( c, pykd.DEBUG_CLASS_USER_WINDOWS )
self.assertEqual( q, pykd.DEBUG_USER_WINDOWS_PROCESS )
def testIsKernelDebugging( self ):
self.assertFalse( pykd.isKernelDebugging() )
def testIsDumpAnalyzing( self ):
self.assertFalse( pykd.isDumpAnalyzing() )
def testExecutionStatus( self ):
self.assertEqual( pykd.DEBUG_STATUS_BREAK, pykd.getExecutionStatus() )
pykd.setExecutionStatus( pykd.DEBUG_STATUS_GO )
pykd.waitForEvent()
self.assertEqual( pykd.DEBUG_STATUS_BREAK, pykd.getExecutionStatus() )