22 #include <glib/gstdio.h>
24 #include "../lib/grn-assertions.h"
29 static gchar *tmp_directory;
46 g_free(tmp_directory);
50 remove_tmp_directory(
void)
52 cut_remove_path(tmp_directory, NULL);
58 remove_tmp_directory();
59 g_mkdir_with_parents(tmp_directory, 0700);
68 cut_build_path(tmp_directory,
"proc.db", NULL),
86 cut_remove_path(tmp_directory, NULL);
92 #define ADD_DATA(label, expected, name) \
93 gcut_add_datum(label, \
94 "expected", G_TYPE_STRING, expected, \
95 "name", G_TYPE_STRING, name, \
98 ADD_DATA(
"built-in", NULL,
"select");
106 const gchar *expected;
109 expected = gcut_data_get_string(data,
"expected");
110 name = gcut_data_get_string(data,
"name");
112 cut_assert_equal_string(expected,
grn_obj_path(context, proc));