mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
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
|