#705267 - add additional defines checks for support "./configure --with-minimum"
https://bugzilla.gnome.org/show_bug.cgi?id=705267
diff --git a/testlimits.c b/testlimits.c
index 41994c4..609064d 100644
--- a/testlimits.c
+++ b/testlimits.c
@@ -1512,6 +1512,7 @@
return(err);
}
+#ifdef LIBXML_READER_ENABLED
static int
launchCrazy(unsigned int test, int fail) {
int res = 0, err = 0;
@@ -1528,6 +1529,7 @@
return(err);
}
+#endif
static int get_crazy_fail(int test) {
/*
@@ -1565,6 +1567,8 @@
old_errors = nb_errors;
old_tests = nb_tests;
old_leaks = nb_leaks;
+
+#ifdef LIBXML_READER_ENABLED
if (tests_quiet == 0) {
printf("## Crazy tests on reader\n");
}
@@ -1573,6 +1577,8 @@
if (res != 0)
ret++;
}
+#endif
+
if (tests_quiet == 0) {
printf("\n## Crazy tests on SAX\n");
}