[glib: 3/5] gio/tests: GStatBuf.st_size is 64 bits on win64




commit 89539d9ae03800e93a2f743746efd84b32879c60
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]