Commit 3a164cca authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

tests: Use tmp dir on tests

parent 9e6bccc2
......@@ -267,9 +267,11 @@ main (int argc, char **argv)
setlocale (LC_COLLATE, "en_US.utf8");
current_dir = g_get_current_dir ();
tests_data_dir = g_build_path (G_DIR_SEPARATOR_S, current_dir, "backup-test-data", NULL);
tests_data_dir = g_build_filename (current_dir, "backup-test-data-XXXXXX", NULL);
g_free (current_dir);
g_mkdtemp (tests_data_dir);
g_test_init (&argc, &argv, NULL);
g_test_add ("/libtracker-data/backup/journal_then_save_and_restore", TestInfo, &tests[0], setup, test_backup_and_restore, teardown);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment