1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

tidyups in test code

(This used to be ctdb commit 43061a4cf9b0995ebe6c86e27f7fc3aacb7bb23e)
This commit is contained in:
Andrew Tridgell 2007-04-17 15:01:42 +10:00
parent 6f9b29da22
commit 3a3bac80b9
2 changed files with 4 additions and 6 deletions

View File

@ -63,8 +63,8 @@ static void bench_fetch_1node(struct ctdb_context *ctdb)
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");

View File

@ -5,7 +5,7 @@ killall -q ctdb_test
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 @@ echo "Trying 4 nodes"
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