gio/tests: Prevent random gio modules from screwing up these tests

https://bugzilla.gnome.org/show_bug.cgi?id=711799
This commit is contained in:
Stef Walter
2013-11-08 14:27:27 +01:00
parent f5c743c939
commit fb8557bdfc
7 changed files with 20 additions and 0 deletions

View File

@@ -193,6 +193,9 @@ main (int argc,
{
g_test_init (&argc, &argv, NULL);
/* gvfs leaks like a sieve (mostly on purpose) */
g_setenv ("GIO_MODULE_DIR", "/non-existant", TRUE);
g_test_add_func ("/async-splice/copy-chunks", test_copy_chunks);
g_test_add_func ("/async-splice/copy-chunks-threaded-input",
test_copy_chunks_threaded_input);