summaryrefslogtreecommitdiff
path: root/tests/testutil.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:05:42 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:05:42 +0900
commit72112ecf818b3b411298b05f081bb10705d62119 (patch)
tree1698b1df233c41aaaf2fb7b4f026e941ab58f3e8 /tests/testutil.hpp
parent4d15d0dcd4772f57f729a69d2c497461820ccb37 (diff)
XS_TEST_MAIN used instead of main in test programs
This is the first step towards making test programs run on Windows. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'tests/testutil.hpp')
-rw-r--r--tests/testutil.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testutil.hpp b/tests/testutil.hpp
index 8dbdbdb..ba4cf5f 100644
--- a/tests/testutil.hpp
+++ b/tests/testutil.hpp
@@ -24,8 +24,15 @@
#include <assert.h>
#include <string.h>
+#include <stdio.h>
#include "../include/xs.h"
+#include "../include/xs_utils.h"
+#include "../src/platform.hpp"
+
+#if !defined XS_TEST_MAIN
+#define XS_TEST_MAIN main
+#endif
inline void bounce (void *sb, void *sc)
{