summaryrefslogtreecommitdiff
path: root/tests/test-doc-portal.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-09-08 15:31:01 +0200
committerAlexander Larsson <alexl@redhat.com>2015-09-08 15:31:01 +0200
commitd0773282a53bf5108981ed008b742348ded35fd1 (patch)
tree930cd48547edf5ef09630ecefb20c462171fd22b /tests/test-doc-portal.c
parent31837cdaa300b99c68c087c150f3b20e11a2b927 (diff)
downloadxdg-app-d0773282a53bf5108981ed008b742348ded35fd1.tar.gz
test-doc-portal: Fix unique boolean arg
Diffstat (limited to 'tests/test-doc-portal.c')
-rw-r--r--tests/test-doc-portal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-doc-portal.c b/tests/test-doc-portal.c
index 60e9648..02bf534 100644
--- a/tests/test-doc-portal.c
+++ b/tests/test-doc-portal.c
@@ -90,7 +90,7 @@ export_file (const char *path, gboolean unique)
"/org/freedesktop/portal/documents",
"org.freedesktop.portal.Documents",
"Add",
- g_variant_new ("(hb)", fd_id, unique),
+ g_variant_new ("(hb)", fd_id, !unique),
G_VARIANT_TYPE ("(s)"),
G_DBUS_CALL_FLAGS_NONE,
30000,
@@ -119,7 +119,7 @@ export_new_file (const char *basename, const char *contents, gboolean unique)
g_file_set_contents (path, contents, -1, &error);
g_assert_no_error (error);
- return export_file (path, FALSE);
+ return export_file (path, unique);
}
static gboolean