mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 11:17:37 +01:00
test: Add new overlay unit test
This commit is contained in:
parent
866f73af91
commit
786d143920
1
test/.gitignore
vendored
1
test/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
headers
|
headers
|
||||||
|
overlay
|
||||||
|
@ -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
23
test/overlay.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user