]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Skip runtime of array length type test on "32-bit"
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 6 Jan 2022 07:50:31 +0000 (08:50 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 6 Jan 2022 07:55:23 +0000 (08:55 +0100)
tests/arrays/length-type.c-expected
tests/arrays/length-type.vala

index a854f2029881e2b2cec398aa69cf692f7ac0269f..01bb8f7b918687684ee00fb9e814ed7b549334ec 100644 (file)
@@ -195,6 +195,9 @@ test_out (void)
 static void
 _vala_main (void)
 {
+       if (((gint64) G_MAXSSIZE) < 2147483648LL) {
+               return;
+       }
        test_pass ();
        test_ref ();
        test_out ();
index 63f6124d60423cd2a4e7fa0ec59222863d276a96..12846fc485961da76250e182294df940958ddd19 100644 (file)
@@ -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 ();