diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_plugin_transport.c | 5 | ||||
-rw-r--r-- | src/transport/test_plugin_transport_data.conf | 2 | ||||
-rw-r--r-- | src/transport/test_transport_api.c | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 981ce142a..550885007 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -341,6 +341,7 @@ main (int argc, char *const *argv) | |||
341 | static struct GNUNET_GETOPT_CommandLineOption options[] = { | 341 | static struct GNUNET_GETOPT_CommandLineOption options[] = { |
342 | GNUNET_GETOPT_OPTION_END | 342 | GNUNET_GETOPT_OPTION_END |
343 | }; | 343 | }; |
344 | int ret; | ||
344 | char *const argv_prog[] = { | 345 | char *const argv_prog[] = { |
345 | "test_plugin_transport", | 346 | "test_plugin_transport", |
346 | "-c", | 347 | "-c", |
@@ -361,13 +362,15 @@ main (int argc, char *const *argv) | |||
361 | #endif | 362 | #endif |
362 | NULL); | 363 | NULL); |
363 | ok = 1; /* set to fail */ | 364 | ok = 1; /* set to fail */ |
364 | return (GNUNET_OK == | 365 | ret = (GNUNET_OK == |
365 | GNUNET_PROGRAM_run (5, | 366 | GNUNET_PROGRAM_run (5, |
366 | argv_prog, | 367 | argv_prog, |
367 | "test-plugin-transport", | 368 | "test-plugin-transport", |
368 | "testcase", | 369 | "testcase", |
369 | options, | 370 | options, |
370 | &run, NULL)) ? ok : 1; | 371 | &run, NULL)) ? ok : 1; |
372 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-plugin-transport"); | ||
373 | return ret; | ||
371 | } | 374 | } |
372 | 375 | ||
373 | /* end of test_plugin_transport.c */ | 376 | /* end of test_plugin_transport.c */ |
diff --git a/src/transport/test_plugin_transport_data.conf b/src/transport/test_plugin_transport_data.conf index fe05589d9..05e41d612 100644 --- a/src/transport/test_plugin_transport_data.conf +++ b/src/transport/test_plugin_transport_data.conf | |||
@@ -1,5 +1,5 @@ | |||
1 | [PATHS] | 1 | [PATHS] |
2 | SERVICEHOME = /tmp/test-plugin-transport/ | 2 | SERVICEHOME = /tmp/test-gnunetd-plugin-transport/ |
3 | 3 | ||
4 | [resolver] | 4 | [resolver] |
5 | PORT = 2364 | 5 | PORT = 2364 |
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index ae4ba3c76..f98bce573 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -294,7 +294,8 @@ main (int argc, char *argv[]) | |||
294 | #endif | 294 | #endif |
295 | NULL); | 295 | NULL); |
296 | ret = check (); | 296 | ret = check (); |
297 | 297 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-transport-peer-1"); | |
298 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-transport-peer-2"); | ||
298 | return ret; | 299 | return ret; |
299 | } | 300 | } |
300 | 301 | ||