mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[0.1.x] Added basic test for Dinkumware map
git-svn-id: https://pykd.svn.codeplex.com/svn@76456 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
efd77a1739
commit
2527901eed
@ -250,3 +250,8 @@ class TypedVarTest( unittest.TestCase ):
|
||||
tv = pykd.typedVar( "g_virtChild" )
|
||||
print tv
|
||||
self.assertEqual( -100, tv.m_baseField )
|
||||
|
||||
def testDinkumwareMap(self):
|
||||
g_map = target.module.typedVar( "g_map" )
|
||||
self.assertEqual( 1, g_map._Mysize )
|
||||
|
||||
|
@ -551,10 +551,16 @@ int doExeptions()
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <map>
|
||||
|
||||
std::map<int, bool> g_map;
|
||||
|
||||
int _tmain(int argc, _TCHAR* argv[])
|
||||
{
|
||||
try
|
||||
{
|
||||
g_map.insert(std::pair<int, bool>(100, true));
|
||||
|
||||
InitializeListHead( &g_listHead );
|
||||
InsertTailList( &g_listHead, &g_listItem1.listEntry );
|
||||
InsertTailList( &g_listHead, &g_listItem2.listEntry );
|
||||
|
Loading…
Reference in New Issue
Block a user