3 #include <glib/gstdio.h>
4 #include "../common/dconf-paths.h"
8 dconf_test_create_tmpdir (void)
13 temp
= g_dir_make_tmp ("dconf-testcase.XXXXXX", &error
);
14 g_assert_no_error (error
);
15 g_assert (temp
!= NULL
);
21 rm_rf (const gchar
*file
)
25 dir
= g_dir_open (file
, 0, NULL
);
28 const gchar
*basename
;
30 while ((basename
= g_dir_read_name (dir
)))
34 fullname
= g_build_filename (file
, basename
, NULL
);
44 /* excess paranoia -- only unlink if we're really really sure */
45 if (strstr (file
, "/dconf-testcase") && !strstr (file
, ".."))
50 dconf_test_remove_tmpdir (const gchar
*tmpdir
)