[glib: 5/6] tests: Enable G_TEST_OPTIONS_ISOLATE_DIRS for bookmarkfile test
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/6] tests: Enable G_TEST_OPTIONS_ISOLATE_DIRS for bookmarkfile test
- Date: Tue, 5 Nov 2019 10:59:19 +0000 (UTC)
commit 422feb743d4024fc87b5dc3eebfdbd9567fffae3
Author: Philip Withnall <withnall endlessm com>
Date: Tue Nov 5 10:20:15 2019 +0000
tests: Enable G_TEST_OPTIONS_ISOLATE_DIRS for bookmarkfile test
This ensures that when running many instances of the test in parallel,
they don’t collide in the same current directory, and hence spuriously
fail. This can happen when writing `out.xbel`, for example.
Signed-off-by: Philip Withnall <withnall endlessm com>
Fixes: #1930
glib/tests/bookmarkfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/bookmarkfile.c b/glib/tests/bookmarkfile.c
index 738452e49..f5622968b 100644
--- a/glib/tests/bookmarkfile.c
+++ b/glib/tests/bookmarkfile.c
@@ -551,7 +551,7 @@ main (int argc, char *argv[])
const gchar *name;
gchar *path;
- g_test_init (&argc, &argv, NULL);
+ g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL);
if (argc > 1)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]