summaryrefslogtreecommitdiff
path: root/ndb/test
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2004-08-11 08:21:31 +0200
committerunknown <joreland@mysql.com>2004-08-11 08:21:31 +0200
commitf4f8b0d8732769c3792dd5375b2fdb10b337a626 (patch)
tree3192839e51637f2018db0a3ef2d10db57b54f006 /ndb/test
parenta550a61f8c56e2a5a23cb0d636212032d899b46e (diff)
downloadmariadb-git-f4f8b0d8732769c3792dd5375b2fdb10b337a626.tar.gz
print test tables
ndb/test/run-test/daily-basic-tests.txt: Use T13 (bigger) for testBasic -n Fill
Diffstat (limited to 'ndb/test')
-rw-r--r--ndb/test/ndbapi/create_tab.cpp5
-rw-r--r--ndb/test/run-test/daily-basic-tests.txt2
-rw-r--r--ndb/test/src/NDBT_Tables.cpp2
3 files changed, 5 insertions, 4 deletions
diff --git a/ndb/test/ndbapi/create_tab.cpp b/ndb/test/ndbapi/create_tab.cpp
index 8bb1e7a9572..c2e3b7f64ea 100644
--- a/ndb/test/ndbapi/create_tab.cpp
+++ b/ndb/test/ndbapi/create_tab.cpp
@@ -63,9 +63,10 @@ int main(int argc, const char** argv){
/**
* Print instead of creating
*/
- if(argv[optind] != NULL){
- for(int i = optind; i<argc; i++)
+ if(optind < argc){
+ for(int i = optind; i<argc; i++){
NDBT_Tables::print(argv[i]);
+ }
} else {
NDBT_Tables::printAll();
}
diff --git a/ndb/test/run-test/daily-basic-tests.txt b/ndb/test/run-test/daily-basic-tests.txt
index 0aa9c761b74..631378cb636 100644
--- a/ndb/test/run-test/daily-basic-tests.txt
+++ b/ndb/test/run-test/daily-basic-tests.txt
@@ -41,7 +41,7 @@ args: -n PkInsertTwice T1 T6 T10
max-time: 1500
cmd: testBasic
-args: -n Fill T1
+args: -n Fill T13
max-time: 1500
cmd: testBasic
diff --git a/ndb/test/src/NDBT_Tables.cpp b/ndb/test/src/NDBT_Tables.cpp
index e1806559150..c10537338f3 100644
--- a/ndb/test/src/NDBT_Tables.cpp
+++ b/ndb/test/src/NDBT_Tables.cpp
@@ -832,7 +832,7 @@ NDBT_Tables::dropAllTables(Ndb* pNdb){
int
NDBT_Tables::print(const char * _name){
- const NdbDictionary::Table* tab = NDBT_Tables::getTable(_name);
+ const NDBT_Table * tab = (const NDBT_Table*)NDBT_Tables::getTable(_name);
if (tab == NULL){
ndbout << "Could not print table " << _name
<< ", it doesn't exist in list of tables "