summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-11 17:57:28 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-11 17:57:56 +0100
commit8794c46a0094eea70cc2122ffeebf00e8ed926f4 (patch)
treea812d147fb99b72476f437dd8149c425dc53f2c0 /tests
parent237819afda29accc5e1e98ba3fbed6fee29d5ca9 (diff)
downloadcmocka-8794c46a0094eea70cc2122ffeebf00e8ed926f4.tar.gz
cmocka-8794c46a0094eea70cc2122ffeebf00e8ed926f4.tar.bz2
cmocka-8794c46a0094eea70cc2122ffeebf00e8ed926f4.zip
tests: Fix building the tests with Visual Studio.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_alloc.c3
-rw-r--r--tests/test_assert_macros.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_alloc.c b/tests/test_alloc.c
index 6008499..e1642af 100644
--- a/tests/test_alloc.c
+++ b/tests/test_alloc.c
@@ -1,6 +1,9 @@
+#include "config.h"
+
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
+#include <cmocka_private.h>
#include <cmocka.h>
#include <stdlib.h>
diff --git a/tests/test_assert_macros.c b/tests/test_assert_macros.c
index 2906517..8e0ebb1 100644
--- a/tests/test_assert_macros.c
+++ b/tests/test_assert_macros.c
@@ -1,12 +1,17 @@
+#include "config.h"
+
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
+#include <cmocka_private.h>
#include <cmocka.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <fcntl.h>
/**************************************