20 #include <glib/gstdio.h>
22 #include "../lib/grn-assertions.h"
33 static gchar *tmp_directory;
34 static const gchar *database_path;
50 g_free(tmp_directory);
54 remove_tmp_directory(
void)
56 cut_remove_path(tmp_directory, NULL);
62 remove_tmp_directory();
63 g_mkdir_with_parents(tmp_directory, 0700);
68 database_path = cut_build_path(tmp_directory,
"database.groonga", NULL);
83 remove_tmp_directory();
87 grn_test_assert_users_exist(
void)
89 const gchar *users_name =
"Users";
90 users =
grn_ctx_get(context, users_name, strlen(users_name));
97 grn_test_assert_users_exist();
105 grn_test_assert_users_exist();
113 grn_test_assert_users_exist();
121 grn_test_assert_users_exist();
131 "[table][create] name can't start with '_' and "
132 "contains only 0-9, A-Z, a-z, #, @, - or _: <_Users>",
133 "table_create _Users");