summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/src
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2011-12-07 14:04:54 +1100
committerMartin Schwenke <martin@meltin.net>2012-02-06 16:00:23 +1100
commit97863216eddc77002bf26e2e4d05f7367790137d (patch)
treee4081eebe25b18a72e7fa818e6014d562572678b /ctdb/tests/src
parentbfab62dd410f163cca313c0271a00980afbbc391 (diff)
downloadsamba-97863216eddc77002bf26e2e4d05f7367790137d.tar.gz
samba-97863216eddc77002bf26e2e4d05f7367790137d.tar.xz
samba-97863216eddc77002bf26e2e4d05f7367790137d.zip
Tests - update test code for ctdb tool code and libctdb stubs
Rename ctdb_parse_nodestring.c to ctdb_tool_libctdb.c. It can contain many tests. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d597020af01dfcdf0d39e1cf579bf33f43f87dda)
Diffstat (limited to 'ctdb/tests/src')
-rw-r--r--ctdb/tests/src/ctdb_tool_libctdb.c (renamed from ctdb/tests/src/ctdb_parse_nodestring.c)5
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/tests/src/ctdb_parse_nodestring.c b/ctdb/tests/src/ctdb_tool_libctdb.c
index e467c36870..6d66054566 100644
--- a/ctdb/tests/src/ctdb_parse_nodestring.c
+++ b/ctdb/tests/src/ctdb_tool_libctdb.c
@@ -1,5 +1,5 @@
/*
- Tests for tools/ctdb.c:parse_nodestring()
+ Tests for tools/ctdb.c and libctdb stubs
Copyright (C) Martin Schwenke 2011
@@ -90,7 +90,8 @@ static void test_parse_nodestring(const char *nodestring_s,
libctdb_test_read_nodemap(ctdb);
- if (parse_nodestring(NULL, nodestring, dd_ok, &nodes, &pnn_mode)) {
+ if (parse_nodestring(NULL, nodestring, CTDB_CURRENT_NODE, dd_ok,
+ &nodes, &pnn_mode)) {
print_nodes(nodes, pnn_mode);
}