add assertion
authorChristian Grothoff <christian@grothoff.org>
Fri, 13 Nov 2009 11:23:29 +0000 (11:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 13 Nov 2009 11:23:29 +0000 (11:23 +0000)
src/util/test_resolver_api.c

index 09eaa9b5bfa2a852e0f9b3bf3d84dbac2f5e08f8..8afa819e4db6bcbbc3a78c60400600739621a3ab 100644 (file)
@@ -176,9 +176,9 @@ check ()
                                  "-L", "DEBUG",
 #endif
                                  "-c", "test_resolver_api_data.conf", NULL);
-  GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
-                      argv, "test-resolver-api", "nohelp",
-                      options, &run, &ok);
+  GNUNET_assert (OK == GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
+                                          argv, "test-resolver-api", "nohelp",
+                                          options, &run, &ok));
   if (0 != PLIBC_KILL (pid, SIGTERM))
     {
       GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");