mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Add a testcase for bug 659866
Mere inclusion of glib headers should not require you to define any XYZ_SOURCE macros.
This commit is contained in:
parent
e1f68c1292
commit
cf9623767a
@ -212,6 +212,12 @@ rwlock_LDADD = $(progs_ldadd)
|
||||
TEST_PROGS += once
|
||||
once_LDADD = $(progs_ldadd)
|
||||
|
||||
TEST_PROGS += cond
|
||||
cond_LDADD = $(progs_ldadd)
|
||||
|
||||
#TEST_PROGS += include
|
||||
#include_LDADD = $(progs_ldadd)
|
||||
|
||||
# some testing of gtester funcitonality
|
||||
XMLLINT=xmllint
|
||||
gtester-xmllint-check: # check testreport xml with xmllint if present
|
||||
|
17
glib/tests/include.c
Normal file
17
glib/tests/include.c
Normal file
@ -0,0 +1,17 @@
|
||||
/* Test case for bug 659866 */
|
||||
|
||||
#define _POSIX_C_SOURCE 0
|
||||
#undef _GNU_SOURCE
|
||||
#undef _XOPEN_SOURCE
|
||||
#include <pthread.h>
|
||||
#include <glib.h>
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
GRWLock lock;
|
||||
|
||||
g_rw_lock_init (&lock);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user