mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] add: workitem 13802 test
git-svn-id: https://pykd.svn.codeplex.com/svn@90891 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
58a3bac61f
commit
52f7dfd24b
@ -331,3 +331,16 @@ class TypedVarTest( unittest.TestCase ):
|
||||
self.assertEqual(5, len(dir(tv)))
|
||||
self.assertTrue("m_field3" in dir(tv))
|
||||
self.assertFalse("m_field33" in dir(tv))
|
||||
|
||||
def testMemoryException(self):
|
||||
self.assertRaises(pykd.MemoryException,
|
||||
int,
|
||||
pykd.typedVar(pykd.baseTypes.UInt4B, 0))
|
||||
if pykd.getCPUType() == pykd.CPUType.I386:
|
||||
self.assertRaises(pykd.MemoryException,
|
||||
int,
|
||||
pykd.typedVar(pykd.baseTypes.UInt4B, 0xFFFFFFFF))
|
||||
self.assertRaises(pykd.MemoryException,
|
||||
int,
|
||||
pykd.typedVar(pykd.baseTypes.UInt4B, 0xFFFFFFFFFFFFFFFF))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user