summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_system_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_system_create.c')
-rw-r--r--src/testing/testing_api_cmd_system_create.c14
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 @@
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_testing_ng_lib.h"
+#include "gnunet_testing_lib.h"
struct TestSystemState
{
struct GNUNET_TESTING_System *test_system;
+
+ const char *testdir;
};
@@ -83,6 +86,17 @@ GNUNET_TESTING_get_trait_test_system (const struct
}
+static void
+system_create_cleanup (void *cls,
+ const struct GNUNET_TESTING_Command *cmd)
+{
+ struct TestSystemState *tss = cls;
+
+ GNUNET_free (tss->test_system);
+ GNUNET_free (tss);
+}
+
+
/**
* Create command.
*