diff options
Diffstat (limited to 'src/dhtu/test_dhtu_ip.c')
-rw-r--r-- | src/dhtu/test_dhtu_ip.c | 39 |
1 files changed, 6 insertions, 33 deletions
diff --git a/src/dhtu/test_dhtu_ip.c b/src/dhtu/test_dhtu_ip.c index f350905b8..eb886e994 100644 --- a/src/dhtu/test_dhtu_ip.c +++ b/src/dhtu/test_dhtu_ip.c | |||
@@ -32,20 +32,9 @@ | |||
32 | #define CONFIG_FILE "test_dhtu_ip.conf" | 32 | #define CONFIG_FILE "test_dhtu_ip.conf" |
33 | 33 | ||
34 | 34 | ||
35 | /** | 35 | int |
36 | * Return value of the test. | 36 | main (int argc, |
37 | * | 37 | char *const *argv) |
38 | */ | ||
39 | static int rv; | ||
40 | |||
41 | |||
42 | /** | ||
43 | * Main function to run the test cases. | ||
44 | * | ||
45 | * @param cls not used. | ||
46 | */ | ||
47 | static void | ||
48 | run (void *cls) | ||
49 | { | 38 | { |
50 | struct GNUNET_TESTING_Command commands[] = { | 39 | struct GNUNET_TESTING_Command commands[] = { |
51 | GNUNET_TESTING_cmd_netjail_start_v2 ("netjail-start", | 40 | GNUNET_TESTING_cmd_netjail_start_v2 ("netjail-start", |
@@ -55,23 +44,7 @@ run (void *cls) | |||
55 | GNUNET_TESTING_cmd_end () | 44 | GNUNET_TESTING_cmd_end () |
56 | }; | 45 | }; |
57 | 46 | ||
58 | (void) cls; | 47 | return GNUNET_TESTING_main (NULL, |
59 | if (GNUNET_OK != | 48 | commands, |
60 | GNUNET_TESTING_run (NULL, /* config file */ | 49 | TIMEOUT); |
61 | commands, | ||
62 | TIMEOUT)) | ||
63 | { | ||
64 | GNUNET_break (0); | ||
65 | rv = EXIT_FAILURE; | ||
66 | } | ||
67 | } | ||
68 | |||
69 | |||
70 | int | ||
71 | main (int argc, | ||
72 | char *const *argv) | ||
73 | { | ||
74 | GNUNET_SCHEDULER_run (&run, | ||
75 | NULL); | ||
76 | return rv; | ||
77 | } | 50 | } |