Rev 127: tidyups in test code in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Tue Apr 17 05:01:42 GMT 2007
------------------------------------------------------------
revno: 127
revision-id: tridge at samba.org-20070417050142-bfa384732fe44e41
parent: tridge at samba.org-20070417045251-34e6240df6ba4b64
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-04-17 15:01:42 +1000
message:
tidyups in test code
modified:
tests/ctdb_fetch.c ctdb_fetch.c-20070405031748-f7gslozfj3rwh5ie-1
tests/test.sh test.sh-20061128065333-cla80zaxd9eb4o4a-2
=== modified file 'tests/ctdb_fetch.c'
--- a/tests/ctdb_fetch.c 2007-04-17 04:52:51 +0000
+++ b/tests/ctdb_fetch.c 2007-04-17 05:01:42 +0000
@@ -63,8 +63,8 @@
int dest, ret;
struct ctdb_record_handle *h;
- key.dptr = discard_const("testkey");
- key.dsize = strlen((const char *)key.dptr);
+ key.dptr = discard_const(TESTKEY);
+ key.dsize = strlen(TESTKEY);
ctdb_db = ctdb_db_handle(ctdb, "test.tdb");
=== modified file 'tests/test.sh'
--- a/tests/test.sh 2007-04-17 04:52:51 +0000
+++ b/tests/test.sh 2007-04-17 05:01:42 +0000
@@ -5,7 +5,7 @@
echo "Trying 2 nodes"
bin/ctdb_test --nlist tests/nodes.txt --listen 127.0.0.1:9001 &
-bin/ctdb_test --nlist tests/nodes.txt --listen 127.0.0.2:9001 &
+bin/ctdb_test --nlist tests/nodes.txt --listen 127.0.0.2:9001
sleep 3
killall ctdb_test
@@ -14,9 +14,7 @@
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.1:9001 &
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.2:9001 &
bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.3:9001 &
-bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.4:9001 &
+bin/ctdb_test --nlist tests/4nodes.txt --listen 127.0.0.4:9001
sleep 3
killall ctdb_test
-
-
More information about the samba-cvs
mailing list