diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-10-15 09:15:15 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-10-15 09:15:15 +0000 |
commit | 30b0be64642d294ab637dd1cc66e97bc4b36276a (patch) | |
tree | 3f5dc3c575b49cf598911b2b188c9ad6a1e7b063 /src/transport/test_transport_api.c | |
parent | e7a1d32b0871f484c80b8f7b585cd0b2b6cd93eb (diff) | |
download | gnunet-30b0be64642d294ab637dd1cc66e97bc4b36276a.tar.gz gnunet-30b0be64642d294ab637dd1cc66e97bc4b36276a.zip |
fix logging for transport testcase, do suid nat binary check in reliability testcase (execution is pointless)
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r-- | src/transport/test_transport_api.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index bf574ab04..789a97f3d 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -518,6 +518,15 @@ main (int argc, char *argv[]) | |||
518 | #ifdef MINGW | 518 | #ifdef MINGW |
519 | return GNUNET_SYSERR; | 519 | return GNUNET_SYSERR; |
520 | #endif | 520 | #endif |
521 | |||
522 | GNUNET_log_setup ("test-transport-api", | ||
523 | #if VERBOSE | ||
524 | "DEBUG", | ||
525 | #else | ||
526 | "WARNING", | ||
527 | #endif | ||
528 | NULL); | ||
529 | |||
521 | if (strstr(argv[0], "tcp_nat") != NULL) | 530 | if (strstr(argv[0], "tcp_nat") != NULL) |
522 | { | 531 | { |
523 | is_tcp_nat = GNUNET_YES; | 532 | is_tcp_nat = GNUNET_YES; |
@@ -557,13 +566,6 @@ main (int argc, char *argv[]) | |||
557 | is_http = GNUNET_YES; | 566 | is_http = GNUNET_YES; |
558 | } | 567 | } |
559 | 568 | ||
560 | GNUNET_log_setup ("test-transport-api", | ||
561 | #if VERBOSE | ||
562 | "DEBUG", | ||
563 | #else | ||
564 | "WARNING", | ||
565 | #endif | ||
566 | NULL); | ||
567 | ret = check (); | 569 | ret = check (); |
568 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-transport-peer-1"); | 570 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-transport-peer-1"); |
569 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-transport-peer-2"); | 571 | GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-transport-peer-2"); |