projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Format configure
[awesomized/libmemcached]
/
tests
/
memdump.cc
diff --git
a/tests/memdump.cc
b/tests/memdump.cc
index f044844d07339477767b70d1609063d16bf3c412..d702ef6a50983efad4f1cc59af3f187f4e06773a 100644
(file)
--- a/
tests/memdump.cc
+++ b/
tests/memdump.cc
@@
-39,7
+39,7
@@
Test that we are cycling the servers we are creating during testing.
*/
Test that we are cycling the servers we are creating during testing.
*/
-#include <config.h>
+#include <
mem_
config.h>
#include <libtest/test.hpp>
#include <libmemcached-1.0/memcached.h>
#include <libtest/test.hpp>
#include <libmemcached-1.0/memcached.h>
@@
-67,7
+67,7
@@
static test_return_t server_test(void *)
snprintf(buffer, sizeof(buffer), "--servers=localhost:%d", int(default_port()));
const char *args[]= { buffer, 0 };
snprintf(buffer, sizeof(buffer), "--servers=localhost:%d", int(default_port()));
const char *args[]= { buffer, 0 };
- test_
compare(EXIT_SUCCESS, exec_cmdline(executable, args, true)
);
+ test_
true(exec_cmdline(executable, args, true) <= EXIT_FAILURE
);
return TEST_SUCCESS;
}
return TEST_SUCCESS;
}
@@
-91,7
+91,7
@@
static test_return_t FOUND_test(void *)
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc));
test_compare(MEMCACHED_SUCCESS, rc);
test_null(memcached_get(memc, test_literal_param("foo"), 0, 0, &rc));
test_compare(MEMCACHED_SUCCESS, rc);
- test_
compare(EXIT_SUCCESS, exec_cmdline(executable, args, true)
);
+ test_
true(exec_cmdline(executable, args, true) <= EXIT_FAILURE
);
memcached_free(memc);
memcached_free(memc);