test: Add new overlay unit test

This commit is contained in:
Guillem Jover 2012-03-24 20:37:55 +01:00
parent 866f73af91
commit 786d143920
3 changed files with 25 additions and 0 deletions

1
test/.gitignore vendored
View File

@ -1 +1,2 @@
headers headers
overlay

View File

@ -12,6 +12,7 @@ AM_CPPFLAGS = \
check_PROGRAMS = \ check_PROGRAMS = \
headers \ headers \
overlay \
$(nil) $(nil)
TESTS = $(check_PROGRAMS) TESTS = $(check_PROGRAMS)

23
test/overlay.c Normal file
View File

@ -0,0 +1,23 @@
/* Include system headers that are “known” to pull bits selectively from
* other headers through magic macros, to check that the overlay is working
* properly. */
#include <errno.h>
#include <grp.h>
#include <stdint.h>
/* Include libbsd overlayed headers that might get partially included. */
#include <sys/cdefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int
main()
{
/* Test that we do not get partial definitions. */
fflush(stdout);
return 0;
}