summaryrefslogtreecommitdiff
path: root/tests/memrm.cc
diff options
context:
space:
mode:
authorBrian Aker <brian@tangent.org>2013-08-06 06:04:31 -0400
committerBrian Aker <brian@tangent.org>2013-08-06 06:04:31 -0400
commit04e4d81e039c4aa1f048782c13a6771e8aa2172c (patch)
tree5df9dccd1df87a2590815af1ba5bfd1bea4cabb5 /tests/memrm.cc
parent9ea43e50c42474c6d6cc338dc26bb9a74cc74641 (diff)
downloadlibmemcached-04e4d81e039c4aa1f048782c13a6771e8aa2172c.tar.gz
Fix tests (namely the "s" for CLI options).
Diffstat (limited to 'tests/memrm.cc')
-rw-r--r--tests/memrm.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/memrm.cc b/tests/memrm.cc
index 043e0ce5..6955f1fa 100644
--- a/tests/memrm.cc
+++ b/tests/memrm.cc
@@ -84,6 +84,8 @@ static test_return_t rm_test(void *)
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc));
test_compare(MEMCACHED_SUCCESS, rc);
+ char memrm_buffer[1024];
+ snprintf(memrm_buffer, sizeof(memrm_buffer), "--servers=localhost:%d", int(default_port()));
const char *args[]= { buffer, "foo", 0 };
test_compare(EXIT_SUCCESS, exec_cmdline(executable, args, true));
@@ -121,7 +123,7 @@ static test_return_t NOT_FOUND_TEST(void *)
static test_return_t multiple_NOT_FOUND_TEST(void *)
{
char buffer[1024];
- snprintf(buffer, sizeof(buffer), "--server=localhost:%d", int(default_port()));
+ snprintf(buffer, sizeof(buffer), "--servers=localhost:%d", int(default_port()));
const char *args[]= { buffer, "protocols", "foo", "mine", "bar", "dog", "cat", "foo", "mine",
"eye", "for", "the", "to", "not", "know", "what", "I", "should", "be", "doing", 0 };