summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/main.c2
-rw-r--r--test/minibuffer.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c
index c4b50d0..01b2645 100644
--- a/test/main.c
+++ b/test/main.c
@@ -4,6 +4,8 @@
#include <stdlib.h>
#include <time.h>
+#include "lang.h"
+#include "settings.h"
#include "test.h"
void handle_abort() { exit(1); }
diff --git a/test/minibuffer.c b/test/minibuffer.c
index 0e41c7b..391b302 100644
--- a/test/minibuffer.c
+++ b/test/minibuffer.c
@@ -6,6 +6,7 @@
#include "buffer.h"
#include "display.h"
#include "minibuffer.h"
+#include "settings.h"
static struct buffer b = {0};
@@ -15,6 +16,7 @@ void *alloc_fn(size_t sz) { return frame_allocator_alloc(g_alloc, sz); }
void init() {
if (b.name == NULL) {
+ settings_init(10);
b = buffer_create("minibuffer", false);
}
@@ -24,6 +26,7 @@ void init() {
void destroy() {
if (b.name != NULL) {
buffer_destroy(&b);
+ settings_destroy();
}
}