summaryrefslogtreecommitdiff
path: root/ndb/test/ndbapi/testDict.cpp
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-12-21 07:51:17 +0100
committerunknown <joreland@mysql.com>2004-12-21 07:51:17 +0100
commitb4c941bd7d6814964c0297bf799179f4a980d225 (patch)
treea543e7ecda63d00f9fc31a2a4bba1f92e96f4ab5 /ndb/test/ndbapi/testDict.cpp
parentca66733676726574d9f1025897d17125c9a406c1 (diff)
downloadmariadb-git-b4c941bd7d6814964c0297bf799179f4a980d225.tar.gz
ndb - autotest bug fixes
ndb/test/ndbapi/testDict.cpp: Drop table at end of testDict createTableWhenDbIsFull
Diffstat (limited to 'ndb/test/ndbapi/testDict.cpp')
-rw-r--r--ndb/test/ndbapi/testDict.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/ndb/test/ndbapi/testDict.cpp b/ndb/test/ndbapi/testDict.cpp
index 9a33601c85a..221c035e368 100644
--- a/ndb/test/ndbapi/testDict.cpp
+++ b/ndb/test/ndbapi/testDict.cpp
@@ -125,6 +125,16 @@ int runCreateTheTable(NDBT_Context* ctx, NDBT_Step* step){
return NDBT_OK;
}
+int runDropTheTable(NDBT_Context* ctx, NDBT_Step* step){
+ Ndb* pNdb = GETNDB(step);
+ const NdbDictionary::Table* pTab = ctx->getTab();
+
+ // Try to create table in db
+ pNdb->getDictionary()->dropTable(pTab->getName());
+
+ return NDBT_OK;
+}
+
int runCreateTableWhenDbIsFull(NDBT_Context* ctx, NDBT_Step* step){
Ndb* pNdb = GETNDB(step);
int result = NDBT_OK;
@@ -1584,7 +1594,7 @@ TESTCASE("CreateTableWhenDbIsFull",
INITIALIZER(runFillTable);
INITIALIZER(runCreateTableWhenDbIsFull);
INITIALIZER(runDropTableWhenDbIsFull);
- FINALIZER(runClearTable);
+ FINALIZER(runDropTheTable);
}
TESTCASE("FragmentTypeSingle",
"Create the table with fragment type Single\n"){