mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[0.3.x] merged : test from 0.2.x
git-svn-id: https://pykd.svn.codeplex.com/svn@86924 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
commit
6a5d49c132
@ -195,7 +195,7 @@ public:
|
||||
Py_INCREF(threadState->interp->codec_error_registry);
|
||||
|
||||
PyThreadState_Swap(threadState);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
@ -264,7 +264,7 @@ KDLIB_EXT_COMMAND_METHOD_IMPL(PykdExt, py)
|
||||
args.erase( foundArg );
|
||||
}
|
||||
|
||||
if ( global & local )
|
||||
if ( global && local )
|
||||
{
|
||||
eprintln( L"-g(--global) and -l(--local) cannot be set together" );
|
||||
return;
|
||||
@ -281,11 +281,11 @@ KDLIB_EXT_COMMAND_METHOD_IMPL(PykdExt, py)
|
||||
return;
|
||||
}
|
||||
|
||||
global = !(global | local ) ? false : global ; //set local by default
|
||||
global = !(global || local ) ? false : global ; //set local by default
|
||||
}
|
||||
else
|
||||
{
|
||||
global = !(global | local ) ? true : global ; //set global by default
|
||||
global = !(global || local ) ? true : global ; //set global by default
|
||||
}
|
||||
|
||||
PyThreadState *localState = NULL;
|
||||
|
@ -239,6 +239,13 @@ class TypeInfoTest( unittest.TestCase ):
|
||||
def testArrayOf(self):
|
||||
ti = pykd.typeInfo("UInt8B").arrayOf(10)
|
||||
self.assertTrue( "UInt8B[10]", ti.name() )
|
||||
|
||||
def testCompareWihNone(self):
|
||||
ti = None
|
||||
if ti == None:
|
||||
ti = pykd.typeInfo("UInt8B")
|
||||
if ti == None:
|
||||
pass
|
||||
|
||||
def testFunction(self):
|
||||
functype = target.module.typedVar( "CdeclFuncPtr" ).type().deref()
|
||||
|
Loading…
Reference in New Issue
Block a user