summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <jonas@eel.(none)>2007-02-16 01:36:22 +0100
committerunknown <jonas@eel.(none)>2007-02-16 01:36:22 +0100
commited1a033c63d1cc653c02f41e41f6836dde6a06b9 (patch)
treef26319a15889379d639d5de6d67304ea58ff1e89 /storage
parent0887c3bc3809de812118b80c54132dccd7b3c51f (diff)
downloadmariadb-git-ed1a033c63d1cc653c02f41e41f6836dde6a06b9.tar.gz
ndb autotest -
Fix testcase so that it does not leak tables...causing subsequent errors storage/ndb/test/ndbapi/testDict.cpp: Fix testcase so that it does not leak tables...
Diffstat (limited to 'storage')
-rw-r--r--storage/ndb/test/ndbapi/testDict.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/storage/ndb/test/ndbapi/testDict.cpp b/storage/ndb/test/ndbapi/testDict.cpp
index f7de43aea20..f72b9dee80b 100644
--- a/storage/ndb/test/ndbapi/testDict.cpp
+++ b/storage/ndb/test/ndbapi/testDict.cpp
@@ -321,7 +321,11 @@ int runCreateAndDropAtRandom(NDBT_Context* ctx, NDBT_Step* step)
}
i++;
}
-
+
+ for (Uint32 i = 0; i<numTables; i++)
+ if (tabList[i])
+ pDic->dropTable(NDBT_Tables::getTable(i)->getName());
+
delete [] tabList;
return result;
}