From: Rico Tzschichholz Date: Thu, 6 Jan 2022 07:50:31 +0000 (+0100) Subject: tests: Skip runtime of array length type test on "32-bit" X-Git-Tag: 0.55.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=333912f6ec4b24e8f949984d2096b71fb65bac30;p=thirdparty%2Fvala.git tests: Skip runtime of array length type test on "32-bit" --- 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 ();