summaryrefslogtreecommitdiff
path: root/gio/tests/thumbnail-verification.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/tests/thumbnail-verification.c')
-rw-r--r--gio/tests/thumbnail-verification.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gio/tests/thumbnail-verification.c b/gio/tests/thumbnail-verification.c
index d50638fe7..f439c8b06 100644
--- a/gio/tests/thumbnail-verification.c
+++ b/gio/tests/thumbnail-verification.c
@@ -99,12 +99,17 @@ test_validity (void)
thumbnail_path = g_test_get_filename (G_TEST_DIST, "thumbnails",
tests[i].filename, NULL);
file_uri = g_strconcat ("file:///tmp/", tests[i].filename, NULL);
+#ifdef HAVE_STATX
+ stat_buf.stx_mtime.tv_sec = tests[i].mtime;
+ stat_buf.stx_size = tests[i].size;
+#else
#ifdef G_OS_WIN32
stat_buf.st_mtim.tv_sec = tests[i].mtime;
#else
stat_buf.st_mtime = tests[i].mtime;
#endif
stat_buf.st_size = tests[i].size;
+#endif
result = thumbnail_verify (thumbnail_path, file_uri, &stat_buf);