[glib/backport-2449-2600-mingw-test-fixes-glib-2-72: 5/6] gio/tests: GStatBuf.st_size is 64 bits on win64
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/backport-2449-2600-mingw-test-fixes-glib-2-72: 5/6] gio/tests: GStatBuf.st_size is 64 bits on win64
- Date: Thu, 14 Apr 2022 12:19:44 +0000 (UTC)
commit 144f0ec6cc650436a476659521d4a645b163bb86
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Mon Jan 24 01:49:28 2022 +0400
gio/tests: GStatBuf.st_size is 64 bits on win64
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
gio/tests/g-file-info.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gio/tests/g-file-info.c b/gio/tests/g-file-info.c
index fd0c64b55b..59411c3a8f 100644
--- a/gio/tests/g-file-info.c
+++ b/gio/tests/g-file-info.c
@@ -654,7 +654,11 @@ test_internal_enhanced_stdio (void)
g_assert_cmpuint (alsize_ps, <, 0x40000000);
g_assert_cmpuint (size_ps, >, G_GUINT64_CONSTANT (0xFFFFFFFF));
g_assert_cmpuint (statbuf_ps.st_size, >, 0);
+#if defined(_WIN64)
+ g_assert_cmpuint (statbuf_ps.st_size, ==, G_GUINT64_CONSTANT (0x10000000f));
+#else
g_assert_cmpuint (statbuf_ps.st_size, <=, 0xFFFFFFFF);
+#endif
g_object_unref (fi_ps);
g_object_unref (gf_ps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]