diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-08-13 08:56:23 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-08-13 08:56:23 +0000 |
commit | 5ec7a9372394fe793560b3cbc8b8b26dea75c694 (patch) | |
tree | 59108eab61f232c437db451457dadc4b0c49d313 /src/testing | |
parent | 1fa9f1d6eda5f8d564a334ffce24696488f44d14 (diff) | |
download | gnunet-5ec7a9372394fe793560b3cbc8b8b26dea75c694.tar.gz gnunet-5ec7a9372394fe793560b3cbc8b8b26dea75c694.zip |
- print warnings for failed function calls
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/gnunet-testing-run-service.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/gnunet-testing-run-service.c b/src/testing/gnunet-testing-run-service.c index b967d7385..b58e6c27d 100644 --- a/src/testing/gnunet-testing-run-service.c +++ b/src/testing/gnunet-testing-run-service.c | |||
@@ -116,8 +116,10 @@ stdin_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
116 | GNUNET_SCHEDULER_shutdown (); | 116 | GNUNET_SCHEDULER_shutdown (); |
117 | return; | 117 | return; |
118 | case 'r': | 118 | case 'r': |
119 | (void) GNUNET_TESTING_peer_stop (my_peer); | 119 | if (GNUNET_OK != GNUNET_TESTING_peer_stop (my_peer)) |
120 | (void) GNUNET_TESTING_peer_start (my_peer); | 120 | LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to stop the peer\n"); |
121 | if (GNUNET_OK != GNUNET_TESTING_peer_start (my_peer)) | ||
122 | LOG (GNUNET_ERROR_TYPE_ERROR, "Failed to start the peer\n"); | ||
121 | printf ("restarted\n"); | 123 | printf ("restarted\n"); |
122 | fflush (stdout); | 124 | fflush (stdout); |
123 | break; | 125 | break; |