19 #include "../../../config.h"
24 #include <glib/gstdio.h>
26 #include "../lib/grn-assertions.h"
31 static gchar *tmp_directory;
32 static const gchar *database_path;
48 g_free(tmp_directory);
52 remove_tmp_directory(
void)
54 cut_remove_path(tmp_directory, NULL);
60 remove_tmp_directory();
61 g_mkdir_with_parents(tmp_directory, 0700);
66 database_path = cut_build_path(tmp_directory,
"database.groonga", NULL);
79 remove_tmp_directory();
85 #define ADD_DATUM(expected, name) \
86 gcut_add_datum((expected ? "built-in - " name : "custom - " name), \
87 "expected", G_TYPE_BOOLEAN, expected, \
88 "name", G_TYPE_STRING, name, \
112 name = gcut_data_get_string(data,
"name");
114 if (gcut_data_get_string(data,
"expected")) {