diff options
Diffstat (limited to 'src/testing/testing_api_cmd_system_create.c')
-rw-r--r-- | src/testing/testing_api_cmd_system_create.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_system_create.c b/src/testing/testing_api_cmd_system_create.c index ad0aa4f90..a324940bb 100644 --- a/src/testing/testing_api_cmd_system_create.c +++ b/src/testing/testing_api_cmd_system_create.c | |||
@@ -26,10 +26,13 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_util_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_testing_ng_lib.h" | 28 | #include "gnunet_testing_ng_lib.h" |
29 | #include "gnunet_testing_lib.h" | ||
29 | 30 | ||
30 | struct TestSystemState | 31 | struct TestSystemState |
31 | { | 32 | { |
32 | struct GNUNET_TESTING_System *test_system; | 33 | struct GNUNET_TESTING_System *test_system; |
34 | |||
35 | const char *testdir; | ||
33 | }; | 36 | }; |
34 | 37 | ||
35 | 38 | ||
@@ -83,6 +86,17 @@ GNUNET_TESTING_get_trait_test_system (const struct | |||
83 | } | 86 | } |
84 | 87 | ||
85 | 88 | ||
89 | static void | ||
90 | system_create_cleanup (void *cls, | ||
91 | const struct GNUNET_TESTING_Command *cmd) | ||
92 | { | ||
93 | struct TestSystemState *tss = cls; | ||
94 | |||
95 | GNUNET_free (tss->test_system); | ||
96 | GNUNET_free (tss); | ||
97 | } | ||
98 | |||
99 | |||
86 | /** | 100 | /** |
87 | * Create command. | 101 | * Create command. |
88 | * | 102 | * |