pykd/test/scripts/regtest.py
SND\EreTIk_cp a26edc8208 [0.2.x]
~ refactoring: DIA findChildren
 ~ refactoring: failed tests -> tail

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

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