Commit 73d2fb8a authored by zhujiashun's avatar zhujiashun

change '--port' to '-p' in memcache test adapting to older version

parent 25a70b8d
...@@ -76,7 +76,7 @@ static void RunMemcached() { ...@@ -76,7 +76,7 @@ static void RunMemcached() {
} else if (g_mc_pid == 0) { } else if (g_mc_pid == 0) {
puts("[Starting memcached]"); puts("[Starting memcached]");
char* const argv[] = { (char*)MEMCACHED_BIN, char* const argv[] = { (char*)MEMCACHED_BIN,
(char*)"--port", (char*)MEMCACHED_PORT, (char*)"-p", (char*)MEMCACHED_PORT,
NULL }; NULL };
if (execvp(MEMCACHED_BIN, argv) < 0) { if (execvp(MEMCACHED_BIN, argv) < 0) {
puts("Fail to run " MEMCACHED_BIN); puts("Fail to run " MEMCACHED_BIN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment