aboutsummaryrefslogtreecommitdiff
path: root/src/stream
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-06-20 15:14:44 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-06-20 15:14:44 +0000
commit18656ea25708198199589ac8c32c360f2ee1a544 (patch)
tree817dc1fe18dc53fe70bc647f0383cdd7d403af59 /src/stream
parenta2cd9dd7848a038d7006c4766ced886c9538c956 (diff)
downloadgnunet-18656ea25708198199589ac8c32c360f2ee1a544.tar.gz
gnunet-18656ea25708198199589ac8c32c360f2ee1a544.zip
-fixes for api change in testing library
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/test_stream_big.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stream/test_stream_big.c b/src/stream/test_stream_big.c
index 03dec7c3d..6815ae665 100644
--- a/src/stream/test_stream_big.c
+++ b/src/stream/test_stream_big.c
@@ -102,6 +102,7 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
102 GNUNET_SCHEDULER_cancel (abort_task); 102 GNUNET_SCHEDULER_cancel (abort_task);
103 } 103 }
104 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Wait\n"); 104 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: Wait\n");
105 GNUNET_SCHEDULER_shutdown ();
105} 106}
106 107
107 108
@@ -306,8 +307,8 @@ stream_read_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
306 */ 307 */
307static int 308static int
308stream_listen_cb (void *cls, 309stream_listen_cb (void *cls,
309 struct GNUNET_STREAM_Socket *socket, 310 struct GNUNET_STREAM_Socket *socket,
310 const struct GNUNET_PeerIdentity *initiator) 311 const struct GNUNET_PeerIdentity *initiator)
311{ 312{
312 GNUNET_assert (NULL != socket); 313 GNUNET_assert (NULL != socket);
313 GNUNET_assert (socket != peer1.socket); 314 GNUNET_assert (socket != peer1.socket);
@@ -354,7 +355,7 @@ stream_connect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
354static void 355static void
355run (void *cls, 356run (void *cls,
356 const struct GNUNET_CONFIGURATION_Handle *cfg, 357 const struct GNUNET_CONFIGURATION_Handle *cfg,
357 const struct GNUNET_TESTING_Peer *peer) 358 struct GNUNET_TESTING_Peer *peer)
358{ 359{
359 struct GNUNET_PeerIdentity self; 360 struct GNUNET_PeerIdentity self;
360 361
@@ -380,10 +381,9 @@ run (void *cls,
380 */ 381 */
381int main (int argc, char **argv) 382int main (int argc, char **argv)
382{ 383{
383 if (0 != GNUNET_TESTING_service_run_restartable ("test-stream-big", 384 if (0 != GNUNET_TESTING_peer_run ("test-stream-big",
384 "arm", 385 "test_stream_local.conf",
385 "test_stream_local.conf", 386 &run, NULL))
386 &run, NULL))
387 return 1; 387 return 1;
388 return (GNUNET_SYSERR == result) ? 1 : 0; 388 return (GNUNET_SYSERR == result) ? 1 : 0;
389} 389}