summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2004-08-03 15:07:23 +0000
committerMarius Vollmer <mvo@zagadka.de>2004-08-03 15:07:23 +0000
commitb8f63daff425082d388c90f8e1013ddc39fc63f3 (patch)
treee4cdab6016e2a3c7df18593622cf6a6dc27ebcb1
parenteae5018eff06011ebf90883edbe50ecfb6a338c1 (diff)
downloadguile-b8f63daff425082d388c90f8e1013ddc39fc63f3.tar.gz
Only perform the tests when the disabled features are enabled.
-rw-r--r--test-suite/standalone/test-num2integral.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/standalone/test-num2integral.c b/test-suite/standalone/test-num2integral.c
index dfac54f58..638227083 100644
--- a/test-suite/standalone/test-num2integral.c
+++ b/test-suite/standalone/test-num2integral.c
@@ -20,6 +20,8 @@
#include <stdio.h>
#include <assert.h>
+#if SCM_ENABLE_DISCOURAGED == 1
+
SCM out_of_range_handler (void *data, SCM key, SCM args);
SCM call_num2long_long_body (void *data);
SCM call_num2ulong_long_body (void *data);
@@ -147,3 +149,13 @@ main (int argc, char *argv[])
test_ulong_long ();
return 0;
}
+
+#else /* SCM_ENABLE_DISCOURAGED == 0 */
+
+int
+main (int argc, char *argv[])
+{
+ return 0;
+}
+
+#endif /* SCM_ENABLE_DISCOURAGED == 0 */