mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] added : test for issue #13860
git-svn-id: https://pykd.svn.codeplex.com/svn@90942 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
f2a596d65b
commit
82270f2067
@ -347,3 +347,9 @@ class TypedVarTest( unittest.TestCase ):
|
|||||||
def testLocation(self):
|
def testLocation(self):
|
||||||
tv = target.module.typedVar( "structTest", target.module.g_structTest )
|
tv = target.module.typedVar( "structTest", target.module.g_structTest )
|
||||||
self.assertEqual( ( pykd.Location.Memory, tv.getAddress()), tv.getLocation() )
|
self.assertEqual( ( pykd.Location.Memory, tv.getAddress()), tv.getLocation() )
|
||||||
|
|
||||||
|
def testGetAddress(self):
|
||||||
|
tv = target.module.typedVar( "structTest", 0x80000000 )
|
||||||
|
self.assertEqual( 0xFFFFFFFF80000000, tv.getAddress() )
|
||||||
|
self.assertEqual( 0xFFFFFFFF80000000, tv )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user