tests: Run dbus-appinfo tests with G_TEST_OPTION_ISOLATE_DIRS

Eliminate any possibility of them accidentally using the user’s
actual home directory.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-09-27 17:12:52 +01:00
parent d7e368f206
commit 6b2cc430e0
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -467,7 +467,7 @@ test_flatpak_missing_doc_export (void)
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL);
g_test_add_func ("/appinfo/dbusappinfo", test_dbus_appinfo); g_test_add_func ("/appinfo/dbusappinfo", test_dbus_appinfo);
g_test_add_func ("/appinfo/flatpak-doc-export", test_flatpak_doc_export); g_test_add_func ("/appinfo/flatpak-doc-export", test_flatpak_doc_export);