diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:05:42 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:05:42 +0900 |
commit | 72112ecf818b3b411298b05f081bb10705d62119 (patch) | |
tree | 1698b1df233c41aaaf2fb7b4f026e941ab58f3e8 /tests/testutil.hpp | |
parent | 4d15d0dcd4772f57f729a69d2c497461820ccb37 (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.hpp | 7 |
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) { |