mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 19:53:22 +08:00

~ refactoring: DIA findChildren ~ refactoring: failed tests -> tail git-svn-id: https://pykd.svn.codeplex.com/svn@83636 9b283d60-5439-405e-af05-b73fd8c4d996
21 lines
464 B
Python
21 lines
464 B
Python
|
|
import unittest
|
|
import target
|
|
import pykd
|
|
|
|
class CpuRegTest( unittest.TestCase ):
|
|
|
|
def testCtor(self):
|
|
currentcpu = pykd.cpu()
|
|
cpu0 = pykd.cpu(0)
|
|
|
|
def testIp(self):
|
|
currentcpu = pykd.cpu()
|
|
self.assertNotEqual( 0, currentcpu.ip )
|
|
self.assertNotEqual( 0, currentcpu.sp )
|
|
self.assertNotEqual( 0, currentcpu.fp )
|
|
|
|
def testRegEnum(self):
|
|
for r in pykd.cpu():
|
|
pass
|