diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-01 22:03:59 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-01 22:03:59 +0000 |
commit | e5b30eb25d2994dc45f7944c5b0f1ce129cd41c5 (patch) | |
tree | 2f589c007614db21919a735a2216f2c07eace908 /src/testing | |
parent | 4d501ee10c63e2edc044d6bcdb8ba060f78b34e5 (diff) | |
download | gnunet-e5b30eb25d2994dc45f7944c5b0f1ce129cd41c5.tar.gz gnunet-e5b30eb25d2994dc45f7944c5b0f1ce129cd41c5.zip |
fix
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_testing_peerstartup.c | 3 | ||||
-rw-r--r-- | src/testing/test_testing_portreservation.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/testing/test_testing_peerstartup.c b/src/testing/test_testing_peerstartup.c index 1de3d5b35..9d3c0bb54 100644 --- a/src/testing/test_testing_peerstartup.c +++ b/src/testing/test_testing_peerstartup.c | |||
@@ -129,13 +129,14 @@ int main (int argc, char *argv[]) | |||
129 | GNUNET_GETOPT_OPTION_END | 129 | GNUNET_GETOPT_OPTION_END |
130 | }; | 130 | }; |
131 | 131 | ||
132 | status = GNUNET_SYSERR; | ||
132 | if (GNUNET_OK != | 133 | if (GNUNET_OK != |
133 | GNUNET_PROGRAM_run (argc, argv, | 134 | GNUNET_PROGRAM_run (argc, argv, |
134 | "test_testing_new_peerstartup", | 135 | "test_testing_new_peerstartup", |
135 | "test case for peerstartup using new testing library", | 136 | "test case for peerstartup using new testing library", |
136 | options, &run, NULL)) | 137 | options, &run, NULL)) |
137 | return 1; | 138 | return 1; |
138 | return 0; | 139 | return (GNUNET_OK == status) ? 0 : 1; |
139 | } | 140 | } |
140 | 141 | ||
141 | /* end of test_testing_peerstartup.c */ | 142 | /* end of test_testing_peerstartup.c */ |
diff --git a/src/testing/test_testing_portreservation.c b/src/testing/test_testing_portreservation.c index 9a69916fa..98690fc1c 100644 --- a/src/testing/test_testing_portreservation.c +++ b/src/testing/test_testing_portreservation.c | |||
@@ -96,9 +96,7 @@ int main (int argc, char *argv[]) | |||
96 | options, | 96 | options, |
97 | &run, | 97 | &run, |
98 | NULL)) | 98 | NULL)) |
99 | { | ||
100 | return 1; | 99 | return 1; |
101 | } | ||
102 | return (GNUNET_OK == status) ? 0 : 1; | 100 | return (GNUNET_OK == status) ? 0 : 1; |
103 | } | 101 | } |
104 | 102 | ||