gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11397 - gnunet/src/hostlist


From: gnunet
Subject: [GNUnet-SVN] r11397 - gnunet/src/hostlist
Date: Mon, 17 May 2010 12:52:22 +0200

Author: wachs
Date: 2010-05-17 12:52:22 +0200 (Mon, 17 May 2010)
New Revision: 11397

Modified:
   gnunet/src/hostlist/Makefile.am
   gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
Log:


Modified: gnunet/src/hostlist/Makefile.am
===================================================================
--- gnunet/src/hostlist/Makefile.am     2010-05-17 09:28:26 UTC (rev 11396)
+++ gnunet/src/hostlist/Makefile.am     2010-05-17 10:52:22 UTC (rev 11397)
@@ -33,11 +33,14 @@
 
 check_PROGRAMS = \
  test_gnunet_daemon_hostlist \
+ test_gnunet_hostlist \
  test_gnunet_daemon_hostlist_learning
 
 if HAVE_MHD
-TESTS = test_gnunet_daemon_hostlist \
- test_gnunet_daemon_hostlist_learning
+TESTS = \
+ test_gnunet_daemon_hostlist \
+ test_gnunet_daemon_hostlist_learning \
+ test_gnunet_hostlist
 endif
 
 test_gnunet_daemon_hostlist_SOURCES = \
@@ -47,6 +50,15 @@
   $(top_builddir)/src/arm/libgnunetarm.la \
   $(top_builddir)/src/util/libgnunetutil.la  
 
+test_gnunet_hostlist_SOURCES = \
+ test_gnunet_hostlist.c
+test_gnunet_hostlist_LDADD = \
+  $(top_builddir)/src/transport/libgnunettransport.la \
+  $(top_builddir)/src/arm/libgnunetarm.la \
+  $(top_builddir)/src/core/libgnunetcore.la \
+  $(top_builddir)/src/statistics/libgnunetstatistics.la \
+  $(top_builddir)/src/util/libgnunetutil.la  
+
 test_gnunet_daemon_hostlist_learning_SOURCES = \
  test_gnunet_daemon_hostlist_learning.c
 test_gnunet_daemon_hostlist_learning_LDADD = \

Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c  2010-05-17 
09:28:26 UTC (rev 11396)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c  2010-05-17 
10:52:22 UTC (rev 11397)
@@ -38,7 +38,7 @@
 /**
  * How long until wait until testcases fails
  */
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 240)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 #define CHECK_INTERVALL GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 1)
 
 static int timeout;
@@ -98,6 +98,8 @@
 
 static void shutdown_testcase()
 {
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown testcase....\n");
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping Timeout Task.\n");
   if (timeout_task != GNUNET_SCHEDULER_NO_TASK)
   {
     GNUNET_SCHEDULER_cancel (sched,
@@ -146,6 +148,7 @@
   GNUNET_SCHEDULER_add_now (sched,
                            &waitpid_task, &adv_peer);
   GNUNET_SCHEDULER_shutdown (sched);
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown complete....\n");
 }
 
 /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]