From 96edebf4d9ec656ec6ed83dca3bbc3947033c71d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 23 Apr 2008 23:55:34 +0000 Subject: improve synchronization between test harness runtests.pl script and test harness servers to minimize risk of false test failures. http://curl.haxx.se/mail/lib-2008-04/0392.html --- tests/server/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/server/util.h') diff --git a/tests/server/util.h b/tests/server/util.h index 4f07fcb05..9b9dd598b 100644 --- a/tests/server/util.h +++ b/tests/server/util.h @@ -27,6 +27,8 @@ void logmsg(const char *msg, ...); #define TEST_DATA_PATH "%s/data/test%ld" +#define SERVERLOGS_LOCK "log/serverlogs.lock" + /* global variable, where to find the 'data' dir */ extern const char *path; @@ -53,4 +55,8 @@ int wait_ms(int timeout_ms); int write_pidfile(const char *filename); +void set_advisor_read_lock(const char *filename); + +void clear_advisor_read_lock(const char *filename); + #endif /* __SERVER_UTIL_H */ -- cgit v1.2.3