Commit b4c941bd authored by unknown's avatar unknown

ndb - autotest bug fixes


ndb/test/ndbapi/testDict.cpp:
  Drop table at end of testDict createTableWhenDbIsFull
parent ca667336
...@@ -125,6 +125,16 @@ int runCreateTheTable(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -125,6 +125,16 @@ int runCreateTheTable(NDBT_Context* ctx, NDBT_Step* step){
return NDBT_OK; 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){ int runCreateTableWhenDbIsFull(NDBT_Context* ctx, NDBT_Step* step){
Ndb* pNdb = GETNDB(step); Ndb* pNdb = GETNDB(step);
int result = NDBT_OK; int result = NDBT_OK;
...@@ -1584,7 +1594,7 @@ TESTCASE("CreateTableWhenDbIsFull", ...@@ -1584,7 +1594,7 @@ TESTCASE("CreateTableWhenDbIsFull",
INITIALIZER(runFillTable); INITIALIZER(runFillTable);
INITIALIZER(runCreateTableWhenDbIsFull); INITIALIZER(runCreateTableWhenDbIsFull);
INITIALIZER(runDropTableWhenDbIsFull); INITIALIZER(runDropTableWhenDbIsFull);
FINALIZER(runClearTable); FINALIZER(runDropTheTable);
} }
TESTCASE("FragmentTypeSingle", TESTCASE("FragmentTypeSingle",
"Create the table with fragment type Single\n"){ "Create the table with fragment type Single\n"){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment