diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-01-16 14:39:28 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-01-16 14:39:28 +0000 |
commit | 8a112720529e9ec36e333ff73a7bfc5db791586e (patch) | |
tree | e9c0488b1f951d6d661d4e357bf6b223111e2d25 /src | |
parent | 17003c1bdaf256eed1780f9239e76a554579310f (diff) | |
download | gnunet-8a112720529e9ec36e333ff73a7bfc5db791586e.tar.gz gnunet-8a112720529e9ec36e333ff73a7bfc5db791586e.zip |
- fix test
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/test_ats_mlp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ats/test_ats_mlp.c b/src/ats/test_ats_mlp.c index 125850b9b..32917d546 100644 --- a/src/ats/test_ats_mlp.c +++ b/src/ats/test_ats_mlp.c | |||
@@ -40,6 +40,8 @@ static int ret; | |||
40 | 40 | ||
41 | struct GNUNET_STATISTICS_Handle * stats; | 41 | struct GNUNET_STATISTICS_Handle * stats; |
42 | 42 | ||
43 | struct GAS_MLP_Handle *mlp; | ||
44 | |||
43 | static void | 45 | static void |
44 | check (void *cls, char *const *args, const char *cfgfile, | 46 | check (void *cls, char *const *args, const char *cfgfile, |
45 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 47 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
@@ -51,9 +53,10 @@ check (void *cls, char *const *args, const char *cfgfile, | |||
51 | #endif | 53 | #endif |
52 | stats = GNUNET_STATISTICS_create("ats", cfg); | 54 | stats = GNUNET_STATISTICS_create("ats", cfg); |
53 | 55 | ||
54 | GNUNET_assert (GNUNET_OK == GAS_mlp_init(NULL, MLP_MAX_EXEC_DURATION, MLP_MAX_ITERATIONS)); | 56 | mlp = GAS_mlp_init(NULL, MLP_MAX_EXEC_DURATION, MLP_MAX_ITERATIONS); |
57 | GNUNET_assert (mlp != NULL); | ||
55 | 58 | ||
56 | GAS_mlp_done(); | 59 | GAS_mlp_done (mlp); |
57 | 60 | ||
58 | GNUNET_STATISTICS_destroy(stats, GNUNET_NO); | 61 | GNUNET_STATISTICS_destroy(stats, GNUNET_NO); |
59 | 62 | ||