summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2023-12-07 11:58:47 +0100
committerjvoisin2023-12-07 12:07:29 +0100
commit9064a508d5f1ed3514d3e5b4734576e80f7048ae (patch)
tree488a7315c7362ab1ab1691be54f0b7f6cc9a3c58 /tests
parent5494a3f9dce8d3cb1a4f4359084a1ef0ee15333e (diff)
Add a global test to ensure that all headers are compiling
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rw-r--r--tests/test_compile.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 4889dc7..f91bff0 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -18,6 +18,7 @@ RUNTIME_TARGETS= \
18 test_bcopy_static_write \ 18 test_bcopy_static_write \
19 test_bzero_dynamic_write \ 19 test_bzero_dynamic_write \
20 test_bzero_static_write \ 20 test_bzero_static_write \
21 test_compile \
21 test_confstr_dynamic \ 22 test_confstr_dynamic \
22 test_confstr_static \ 23 test_confstr_static \
23 test_fgets_dynamic \ 24 test_fgets_dynamic \
diff --git a/tests/test_compile.c b/tests/test_compile.c
new file mode 100644
index 0000000..edbbb27
--- /dev/null
+++ b/tests/test_compile.c
@@ -0,0 +1,18 @@
1#include "common.h"
2
3#include <poll.h>
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7#include <strings.h>
8#include <unistd.h>
9#include <wchar.h>
10
11#include <sys/select.h>
12#include <sys/socket.h>
13#include <sys/stat.h>
14
15// Check that all headers are compiling.
16int main(int argc, char** argv) {
17 return 0;
18}