From: Matthias Wachs Date: Thu, 21 Apr 2011 08:50:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~18624 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ff958297afb8c02bf2c8d28a277e22bf9617b964;p=oweals%2Fgnunet.git --- diff --git a/src/transport/test_transport_ats.c b/src/transport/test_transport_ats.c index 6ce828f58..6ab4fcc51 100644 --- a/src/transport/test_transport_ats.c +++ b/src/transport/test_transport_ats.c @@ -569,7 +569,7 @@ daemon_start_cb (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_TESTING_Daemon *d, const char *emsg) { - if (id == NULL) + if (id#if HAVE_LIBGLPK == NULL) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Start callback called with error (too long starting peers), aborting test!\n"); @@ -668,11 +668,6 @@ check () int main (int argc, char *argv[]) { -#if !HAVE_LIBGLPK - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "GLPK not installed, exiting testcase\n"); - return 0; -#endif - int ret; GNUNET_log_setup ("test-transport-ats", @@ -682,6 +677,12 @@ main (int argc, char *argv[]) "INFO", #endif NULL); + +#if !HAVE_LIBGLPK + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "GLPK not installed, exiting testcase\n"); + return 0; +#endif + GNUNET_DISK_directory_remove ("/tmp/test-gnunet-testing"); machine_parsable = GNUNET_NO;