summaryrefslogtreecommitdiff
path: root/tests/pixbuf-lowmem.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-06 09:11:38 +0200
committerMatthias Clasen <mclasen@redhat.com>2015-10-06 21:37:06 -0400
commit205a3b04e1216c1df199aec95185f7f48b8e0491 (patch)
treecae87df2760fe1d8cfeb387e5f806b985ee79242 /tests/pixbuf-lowmem.c
parentdbfe8f70471864818bf458a39c8a99640895bd22 (diff)
downloadgdk-pixbuf-205a3b04e1216c1df199aec95185f7f48b8e0491.tar.gz
Run only pixbuf-lowmem test on GNU libc
The test case depends on GNU libc specific internals so we only run it on GNU libc. This fixes build on Linux with musl libc. https://bugzilla.gnome.org/show_bug.cgi?id=756078
Diffstat (limited to 'tests/pixbuf-lowmem.c')
-rw-r--r--tests/pixbuf-lowmem.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pixbuf-lowmem.c b/tests/pixbuf-lowmem.c
index ae71788e2..9e9571f92 100644
--- a/tests/pixbuf-lowmem.c
+++ b/tests/pixbuf-lowmem.c
@@ -24,6 +24,7 @@
#include <time.h>
#include <string.h>
+#ifdef __GLIBC__
#define PRETEND_MEM_SIZE (16 * 1024 * 1024)
#define REMAINING_MEM_SIZE 100000
@@ -225,3 +226,10 @@ main (int argc, char **argv)
return 0;
}
+#else
+int
+main (int argc, char **argv)
+{
+ return 0;
+}
+#endif