summaryrefslogtreecommitdiffstats
path: root/test/Repository/StaticLibrary.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Repository/StaticLibrary.py')
-rw-r--r--test/Repository/StaticLibrary.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Repository/StaticLibrary.py b/test/Repository/StaticLibrary.py
index 087fa7e..1cf20c3 100644
--- a/test/Repository/StaticLibrary.py
+++ b/test/Repository/StaticLibrary.py
@@ -66,6 +66,8 @@ env.Program(target = 'foo', source = 'foo.c')
""")
test.write(['repository', 'aaa.c'], r"""
+#include <stdio.h>
+#include <stdlib.h>
void
aaa(void)
{
@@ -74,6 +76,8 @@ aaa(void)
""")
test.write(['repository', 'bbb.c'], r"""
+#include <stdio.h>
+#include <stdlib.h>
void
bbb(void)
{
@@ -82,6 +86,8 @@ bbb(void)
""")
test.write(['repository', 'foo.c'], r"""
+#include <stdio.h>
+#include <stdlib.h>
extern void aaa(void);
extern void bbb(void);
int
@@ -118,6 +124,8 @@ test.fail_test(os.path.exists(repository_foo))
test.up_to_date(chdir = 'work1', options = opts, arguments = ".")
test.write(['work1', 'bbb.c'], r"""
+#include <stdio.h>
+#include <stdlib.h>
void
bbb(void)
{
@@ -168,6 +176,8 @@ test.writable('repository', 0)
test.up_to_date(chdir = 'work2', options = opts, arguments = ".")
test.write(['work2', 'bbb.c'], r"""
+#include <stdio.h>
+#include <stdlib.h>
void
bbb(void)
{
@@ -194,6 +204,8 @@ test.up_to_date(chdir = 'work2', options = opts, arguments = ".")
test.up_to_date(chdir = 'work3', options = opts, arguments = ".")
test.write(['work3', 'foo.c'], r"""
+#include <stdio.h>
+#include <stdlib.h>
extern void aaa(void);
extern void bbb(void);
int