aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-22 02:51:54 +0000
committerYang Tse <yangsita@gmail.com>2007-02-22 02:51:54 +0000
commit69565afab0be081211df57a245a222cbd3e43ed3 (patch)
tree834ab5e7265abad18a542da69d7d65fba831cee3 /tests
parent39aac6352159b4ba92463ec95b9e3df49a5b6693 (diff)
Check for stdbool.h at configuration stage, and include it if available.
Check for lowercase 'bool' type at configuration stage. If not available provide a suitable replacement with a type definition of 'unsigned char' in setup_once.h Move definitions of TRUE and FALSE to setup_once.h
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/test.h9
-rw-r--r--tests/server/util.h7
2 files changed, 1 insertions, 15 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 5e298abbd..c7064f82e 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -12,6 +12,7 @@
version, but that might include "config.h" from the build dir so we need
both of them in the include path), so that we get good in-depth knowledge
about the system we're building this on */
+
#include "setup.h"
#include <curl.h>
@@ -32,14 +33,6 @@
#include <unistd.h>
#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-
#define TEST_ERR_MAJOR_BAD 100
#define TEST_ERR_RUNS_FOREVER 99
diff --git a/tests/server/util.h b/tests/server/util.h
index 2848560bb..69f2cfc3d 100644
--- a/tests/server/util.h
+++ b/tests/server/util.h
@@ -25,13 +25,6 @@
void logmsg(const char *msg, ...);
-#ifndef FALSE
-#define FALSE 0
-#endif
-#ifndef TRUE
-#define TRUE 1
-#endif
-
#define TEST_DATA_PATH "%s/data/test%ld"
/* global variable, where to find the 'data' dir */