summaryrefslogtreecommitdiff
path: root/test/common/testcommon.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-22 14:05:55 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-22 14:05:55 +0000
commit5cf9d57447c66eb4b286fea39ebbe0731f0f8084 (patch)
treefdc09a782ab4e547022d0806c51b3bac28462ffd /test/common/testcommon.cpp
parent20331e780ae21430dd3e9f9edc684cf6a94d481b (diff)
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)
Diffstat (limited to 'test/common/testcommon.cpp')
-rw-r--r--test/common/testcommon.cpp9
1 files changed, 0 insertions, 9 deletions
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: