gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28559 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r28559 - gnunet/src/testing
Date: Tue, 13 Aug 2013 10:56:23 +0200

Author: harsha
Date: 2013-08-13 10:56:23 +0200 (Tue, 13 Aug 2013)
New Revision: 28559

Modified:
   gnunet/src/testing/gnunet-testing-run-service.c
Log:
- print warnings for failed function calls


Modified: gnunet/src/testing/gnunet-testing-run-service.c
===================================================================
--- gnunet/src/testing/gnunet-testing-run-service.c     2013-08-13 08:55:17 UTC 
(rev 28558)
+++ gnunet/src/testing/gnunet-testing-run-service.c     2013-08-13 08:56:23 UTC 
(rev 28559)
@@ -116,8 +116,10 @@
     GNUNET_SCHEDULER_shutdown ();
     return;
   case 'r':
-    (void) GNUNET_TESTING_peer_stop (my_peer); 
-    (void) GNUNET_TESTING_peer_start (my_peer); 
+    if (GNUNET_OK != GNUNET_TESTING_peer_stop (my_peer))
+      LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to stop the peer\n");
+    if (GNUNET_OK != GNUNET_TESTING_peer_start (my_peer))
+      LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to start the peer\n");
     printf ("restarted\n");
     fflush (stdout);
     break;




reply via email to

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