[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:
SND\kernelnet_cp 2016-03-04 10:27:21 +00:00 committed by Mikhail I. Izmestev
parent f2a596d65b
commit 82270f2067

View File

@ -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 )