diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2014-06-11 10:47:25 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2014-06-11 10:47:25 +0000 |
commit | 0203ddfc0faa65fa5f43a2264bd2fca2984b9acd (patch) | |
tree | 5ae810b6f4acf9b3e63bc1919b0bad8001da6a08 /src | |
parent | ba2eb52464565c879f08439ea8688fa388ea6847 (diff) | |
download | gnunet-0203ddfc0faa65fa5f43a2264bd2fca2984b9acd.tar.gz gnunet-0203ddfc0faa65fa5f43a2264bd2fca2984b9acd.zip |
- added missing comma in nat-test
Diffstat (limited to 'src')
-rw-r--r-- | src/nat/test_nat_test.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/nat/test_nat_test.c b/src/nat/test_nat_test.c index e8f0f5a47..4095e840c 100644 --- a/src/nat/test_nat_test.c +++ b/src/nat/test_nat_test.c | |||
@@ -40,11 +40,17 @@ static int ret = 1; | |||
40 | static struct GNUNET_NAT_Test *tst; | 40 | static struct GNUNET_NAT_Test *tst; |
41 | 41 | ||
42 | static void | 42 | static void |
43 | report_success (void *cls, | 43 | report_result (void *cls, |
44 | enum GNUNET_NAT_FailureCode aret) | 44 | enum GNUNET_NAT_FailureCode aret) |
45 | { | 45 | { |
46 | GNUNET_assert (GNUNET_NAT_ERROR_SUCCESS == aret); | 46 | if (GNUNET_NAT_ERROR_TIMEOUT == aret) |
47 | ret = 0; | 47 | fprintf (stderr, |
48 | "NAT test timed out\n"); | ||
49 | else if (GNUNET_NAT_ERROR_SUCCESS != aret) | ||
50 | fprintf (stderr, | ||
51 | "NAT test reported error %d\n", aret); | ||
52 | else | ||
53 | ret = 0; | ||
48 | } | 54 | } |
49 | 55 | ||
50 | 56 | ||
@@ -56,8 +62,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
56 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 62 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
57 | { | 63 | { |
58 | tst = | 64 | tst = |
59 | GNUNET_NAT_test_start (cfg, GNUNET_YES, 1285, 1285, TIMEOUT | 65 | GNUNET_NAT_test_start (cfg, GNUNET_YES, 1285, 1285, TIMEOUT, |
60 | &report_success, | 66 | &report_result, |
61 | NULL); | 67 | NULL); |
62 | } | 68 | } |
63 | 69 | ||