From d3cec4b830d6799bf161f80e79bc0dc69dc0f9e1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 15 Oct 2006 19:20:30 +0000 Subject: Compile fix. (refs #3) --- lib/common/Test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/common/Test.h b/lib/common/Test.h index 5e42e406..35e9ba58 100644 --- a/lib/common/Test.h +++ b/lib/common/Test.h @@ -108,7 +108,7 @@ inline int LaunchServer(const char *pCommandLine, const char *pidFile) { if(RunCommand(pCommandLine) != 0) { - printf("Server: %s\n", command.c_str()); + printf("Server: %s\n", pCommandLine); TEST_FAIL_WITH_MESSAGE("Couldn't start server"); return -1; } @@ -118,7 +118,7 @@ inline int LaunchServer(const char *pCommandLine, const char *pidFile) // read pid file if(!TestFileExists(pidFile)) { - printf("Server: %s\n", command.c_str()); + printf("Server: %s\n", pCommandLine); TEST_FAIL_WITH_MESSAGE("Server didn't save PID file"); return -1; } @@ -127,7 +127,7 @@ inline int LaunchServer(const char *pCommandLine, const char *pidFile) int pid = -1; if(f == NULL || fscanf(f, "%d", &pid) != 1) { - printf("Server: %s (pidfile %s)\n", command.c_str(), pidFile); + printf("Server: %s (pidfile %s)\n", pCommandLine, pidFile); TEST_FAIL_WITH_MESSAGE("Couldn't read PID file"); return -1; } -- cgit v1.2.3