libbsd/test
Hanno Boeck 008316aa29 test: Add missing <sys/stat.h> include
The test in test/strmode.c can fail to compile depending on the
optimization flags used.

The constants that are used in this file (S_IFREG etc.) come from the
<sys/stat.h> include file. It seems gcc ignores this error if one
compiles with "-O2" (default), but if one uses no optimization it fails.

Add the missing include and it works all the time.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93880
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2016-01-27 15:24:39 +01:00
..
.gitignore test: Add new unit tests for individual headers usage 2015-12-14 03:34:40 +01:00
arc4random.c test: Fix success return code for arc4random unit test 2016-01-11 02:35:34 +01:00
bzero.c Add explicit_bzero() function from OpenBSD 2015-09-24 05:47:58 +02:00
closefrom.c test: Add closefrom() unit test 2015-09-23 07:59:34 +02:00
endian.c test: Add a unit test for endian encoder/decoder 2012-05-29 04:51:16 +02:00
fgetln.c test: Refactor stream testing functions into a new module 2015-09-23 07:59:34 +02:00
fparseln.c test: Add fparseln() unit test 2015-09-23 07:59:34 +02:00
fpurge.c test: Add test case for fpurge(NULL) 2015-09-23 07:59:34 +02:00
funopen.c Add funopen() function 2013-10-21 05:35:44 +02:00
headers-overlay.sh test: Fix race condition in headers-*.sh 2016-01-10 17:36:34 +01:00
headers-system.sh test: Fix race condition in headers-*.sh 2016-01-10 17:36:34 +01:00
humanize.c Fix dehumanize_number() to correctly detect overflows 2013-10-21 05:29:37 +02:00
Makefile.am test: Add new unit tests for individual headers usage 2015-12-14 03:34:40 +01:00
overlay.c Add missing copyright and license headers 2015-12-07 01:56:25 +01:00
proctitle.c test: Check asprintf() return code 2015-11-30 23:48:50 +01:00
strmode.c test: Add missing <sys/stat.h> include 2016-01-27 15:24:39 +01:00
test-stream.c test: Refactor stream testing functions into a new module 2015-09-23 07:59:34 +02:00
test-stream.h test: Refactor stream testing functions into a new module 2015-09-23 07:59:34 +02:00