mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 05:13:22 +08:00
[0.1.x] + test of constant enum
git-svn-id: https://pykd.svn.codeplex.com/svn@74823 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
6b11102280
commit
5aca2ab3e1
@ -25,6 +25,7 @@ class TypedVarTest( unittest.TestCase ):
|
||||
def testConst(self):
|
||||
self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) )
|
||||
self.assertEqual( 0x5555, target.module.typedVar( "g_constNumValue" ) )
|
||||
self.assertEqual( 3, target.module.typedVar( "g_constEnumThree" ) )
|
||||
|
||||
def testGetAddress( self ):
|
||||
tv = target.module.typedVar( "structTest", target.module.g_structTest )
|
||||
|
@ -111,6 +111,8 @@ enum enumType {
|
||||
THREE = 3
|
||||
};
|
||||
|
||||
const enumType g_constEnumThree = THREE;
|
||||
|
||||
class classChild : public classBase {
|
||||
public:
|
||||
int m_childField;
|
||||
@ -293,6 +295,7 @@ void FuncWithName0()
|
||||
std::cout << ptrIntMatrix1;
|
||||
std::cout << g_bigValue;
|
||||
std::cout << g_classChild.m_enumField;
|
||||
std::cout << g_constEnumThree;
|
||||
std::cout << g_unNamedStruct.m_fieldNestedStruct;
|
||||
std::cout << g_structNested.m_nestedFiled;
|
||||
std::cout << g_unTypedPtrToFunction;
|
||||
|
Loading…
Reference in New Issue
Block a user