Explorar el Código

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

zhujiashun hace 4 años
padre
commit
73d2fb8ab4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test/brpc_memcache_unittest.cpp

+ 1 - 1
test/brpc_memcache_unittest.cpp

@@ -76,7 +76,7 @@ static void RunMemcached() {
     } else if (g_mc_pid == 0) {
         puts("[Starting memcached]");
         char* const argv[] = { (char*)MEMCACHED_BIN,
-                               (char*)"--port", (char*)MEMCACHED_PORT,
+                               (char*)"-p", (char*)MEMCACHED_PORT,
                                NULL };
         if (execvp(MEMCACHED_BIN, argv) < 0) {
             puts("Fail to run " MEMCACHED_BIN);