From 5cf9d57447c66eb4b286fea39ebbe0731f0f8084 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 22 Apr 2007 14:05:55 +0000 Subject: Declare global std::string variables that hold extra arguments for executables run in tests, to be implemented in a follow-up patch. ConvertPaths, LaunchServer and RunCommand all take std::string references instead of char*. Move safe_sleep from test/common to lib/server/Test.h so that all tests can use it. (refs #3) --- test/common/testcommon.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test') diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp index 45473425..6c90602a 100644 --- a/test/common/testcommon.cpp +++ b/test/common/testcommon.cpp @@ -137,15 +137,6 @@ ConfigurationVerify verify = 0 }; -void safe_sleep(int seconds) -{ - struct timespec ts; - ts.tv_sec = seconds; - ts.tv_nsec = 0; - while (nanosleep(&ts, &ts) == -1 && errno == EINTR) - { /* sleep again */ } -} - class TestLogger : public Logger { private: -- cgit v1.2.3