plane hacking
[oweals/gnunet.git] / src / fs / test_fs_start_stop.c
index eac14b070c6fd0c1be37adb2e1805590676cb328..7558ac46a9ceedd9ae69697444423d0f01275e48 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
@@ -29,6 +29,8 @@
 #include "gnunet_arm_service.h"
 #include "gnunet_fs_service.h"
 
+#define VERBOSE GNUNET_NO
+
 #define START_ARM GNUNET_YES
 
 static struct GNUNET_SCHEDULER_Handle *sched;
@@ -57,16 +59,14 @@ setup_peer (struct PeerContext *p, const char *cfgname)
 {
   p->cfg = GNUNET_CONFIGURATION_create ();
 #if START_ARM
-  p->arm_pid = GNUNET_OS_start_process ("gnunet-service-arm",
+  p->arm_pid = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm",
                                         "gnunet-service-arm",
 #if VERBOSE
                                         "-L", "DEBUG",
 #endif
                                         "-c", cfgname, NULL);
-  sleep (1);                    /* allow ARM to start */
 #endif
   GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
-  GNUNET_ARM_start_services (p->cfg, sched, "core", NULL);
 }
 
 
@@ -104,6 +104,7 @@ run (void *cls,
                        GNUNET_FS_FLAGS_NONE,
                        GNUNET_FS_OPTIONS_END);
   GNUNET_assert (NULL != fs); 
+  sleep (1); /* FIXME */
   GNUNET_FS_stop (fs);
 }