dce
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 19:41:16 +0000 (19:41 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 19:41:16 +0000 (19:41 +0000)
src/transport/test_transport_ats_multiple_peers.c

index d98fc12cf8afc42394fa2406d3a659cb420099a4..0a79b2ccd1bf46671efe4b673ed763f94cba5d84 100644 (file)
  * @file testing/test_transport_ats_multiple_peers.c
  * @brief testcase for ats functionality by starting multiple peers
  */
+
 #include "platform.h"
+
+#if HAVE_LIBGLPK && HAVE_GLPK
+
 #include "gnunet_testing_lib.h"
 #include "gnunet_transport_service.h"
 #include "gnunet_scheduler_lib.h"
@@ -785,6 +789,7 @@ check ()
   return ok;
 }
 
+#endif
 
 int
 main (int argc, char *argv[])
@@ -803,7 +808,7 @@ main (int argc, char *argv[])
   GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 
              "GLPK not installed, exiting testcase\n");
   return 0;
-#endif
+#else
 
   GNUNET_DISK_directory_remove ("/tmp/test-gnunet-testing");
   machine_parsable = GNUNET_NO;
@@ -846,6 +851,7 @@ main (int argc, char *argv[])
    */
   GNUNET_DISK_directory_remove ("/tmp/test-gnunet-testing");
   return ret;
+#endif
 }
 
 /* end of test_transport_ats_multiple_peers.c*/