From 333912f6ec4b24e8f949984d2096b71fb65bac30 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 6 Jan 2022 08:50:31 +0100 Subject: [PATCH] tests: Skip runtime of array length type test on "32-bit" --- tests/arrays/length-type.c-expected | 3 +++ tests/arrays/length-type.vala | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/tests/arrays/length-type.c-expected b/tests/arrays/length-type.c-expected index a854f2029..01bb8f7b9 100644 --- a/tests/arrays/length-type.c-expected +++ b/tests/arrays/length-type.c-expected @@ -195,6 +195,9 @@ test_out (void) static void _vala_main (void) { + if (((gint64) G_MAXSSIZE) < 2147483648LL) { + return; + } test_pass (); test_ref (); test_out (); diff --git a/tests/arrays/length-type.vala b/tests/arrays/length-type.vala index 63f6124d6..12846fc48 100644 --- a/tests/arrays/length-type.vala +++ b/tests/arrays/length-type.vala @@ -43,6 +43,11 @@ void test_out () { } void main () { + if (ssize_t.MAX < 2147483648LL) { + //FIXME skip runtime while there is still c-expected + return; + } + test_pass (); test_ref (); test_out (); -- 2.47.2