20 #include <glib/gstdio.h>
22 #include "../lib/grn-assertions.h"
28 static gchar *tmp_directory;
44 g_free(tmp_directory);
48 remove_tmp_directory(
void)
50 cut_remove_path(tmp_directory, NULL);
56 const gchar *database_path;
58 remove_tmp_directory();
59 g_mkdir_with_parents(tmp_directory, 0700);
64 database_path = cut_build_path(tmp_directory,
"database.groonga", NULL);
77 remove_tmp_directory();
84 "invalid command name: rand",