From: Christian Grothoff Date: Mon, 1 Aug 2011 20:43:58 +0000 (+0000) Subject: LRN: Fix hostlist learning test to use /dev/null or NUL X-Git-Tag: initial-import-from-subversion-38251~17546 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e86fde664dcccbe2bdfb675a9b05ea7b78d4782c;p=oweals%2Fgnunet.git LRN: Fix hostlist learning test to use /dev/null or NUL --- diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c index 51bad3bbb..f821a7320 100644 --- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c +++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c @@ -554,8 +554,13 @@ main (int argc, char *argv[]) "WARNING", #endif NULL); +#if !WINDOWS system ("gnunet-peerinfo -s -c test_learning_adv_peer.conf > /dev/null"); system ("gnunet-peerinfo -s -c test_learning_learn_peer.conf > /dev/null"); +#else + system ("gnunet-peerinfo -s -c test_learning_adv_peer.conf > NUL"); + system ("gnunet-peerinfo -s -c test_learning_learn_peer.conf > NUL"); +#endif ret = check (); GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-1"); GNUNET_DISK_directory_remove ("/tmp/test-gnunet-hostlist-peer-2");