summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_config.test
diff options
context:
space:
mode:
authorunknown <hartmut@mysql.com/linux.site>2006-09-13 23:19:18 +0200
committerunknown <hartmut@mysql.com/linux.site>2006-09-13 23:19:18 +0200
commitef5b4efd2289446fd0d55326d99b99a09513e023 (patch)
tree09e3f898957f10d5098d278d57a4972709b24437 /mysql-test/t/ndb_config.test
parenta74f300ff27d5e76c075bfb542705f3ec19647c7 (diff)
downloadmariadb-git-ef5b4efd2289446fd0d55326d99b99a09513e023.tar.gz
Fixed host name comparison (still Bug #17582)
mysql-test/r/ndb_config.result: test case for Bug #17582 mysql-test/t/ndb_config.test: test case for Bug #17582 ndb/tools/ndb_config.cpp: gethostname() returns a pointer to a static buffer so we need to create a copy of the results before calling it on the 2nd host name, else we're effectively comparing a hostname to itself which is of course always true (Bug #17582)
Diffstat (limited to 'mysql-test/t/ndb_config.test')
-rw-r--r--mysql-test/t/ndb_config.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_config.test b/mysql-test/t/ndb_config.test
index 4787abe86e2..f63c0087c1e 100644
--- a/mysql-test/t/ndb_config.test
+++ b/mysql-test/t/ndb_config.test
@@ -16,3 +16,8 @@
--exec $NDB_TOOLS_DIR/ndb_config --defaults-group-suffix=.cluster1 --defaults-file=$MYSQL_TEST_DIR/std_data/ndb_config_mycnf2.cnf --query=type,nodeid,host --mycnf 2> /dev/null
--exec $NDB_TOOLS_DIR/ndb_config --defaults-group-suffix=.cluster2 --defaults-file=$MYSQL_TEST_DIR/std_data/ndb_config_mycnf2.cnf --query=type,nodeid,host --mycnf 2> /dev/null
--exec $NDB_TOOLS_DIR/ndb_config --defaults-group-suffix=.cluster2 --defaults-file=$MYSQL_TEST_DIR/std_data/ndb_config_mycnf2.cnf --ndb-shm --connections --query=type,nodeid1,nodeid2,group,nodeidserver --mycnf 2> /dev/null
+
+
+--exec $NDB_TOOLS_DIR/ndb_config --no-defaults --query=nodeid --host=localhost --config-file=$NDB_BACKUP_DIR/config.ini 2> /dev/null
+--exec $NDB_TOOLS_DIR/ndb_config --no-defaults --query=nodeid --host=1.2.3.4 --config-file=$NDB_BACKUP_DIR/config.ini 2> /dev/null
+--exec $NDB_TOOLS_DIR/ndb_config --no-defaults --query=nodeid --host=127.0.0.1 --config-file=$NDB_BACKUP_DIR/config.ini 2> /dev/null