[0.1.x] + FIXME: support typedVar witout RVA

git-svn-id: https://pykd.svn.codeplex.com/svn@73161 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-01-14 21:49:08 +00:00 committed by Mikhail I. Izmestev
parent fc9014b440
commit 153766deb4

View File

@ -21,8 +21,10 @@ class TypedVarTest( unittest.TestCase ):
self.assertEqual( -2, target.module.typedVar( "g_shortValue" ) ) self.assertEqual( -2, target.module.typedVar( "g_shortValue" ) )
self.assertEqual( -4, target.module.typedVar( "g_longValue" ) ) self.assertEqual( -4, target.module.typedVar( "g_longValue" ) )
self.assertEqual( -8, target.module.typedVar( "g_longlongValue" ) ) self.assertEqual( -8, target.module.typedVar( "g_longlongValue" ) )
try: self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) ) try:
except pykd.DiaException: self.assertTrue( False ) self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) )
except pykd.BaseException:
self.assertFalse( "FIXME: constants without RVA is not supported" )
def testGetAddress( self ): def testGetAddress( self ):
tv = target.module.typedVar( "structTest", target.module.g_structTest ) tv = target.module.typedVar( "structTest", target.module.g_structTest )