[vala/staging] tests: Skip runtime of array length type test on "32-bit"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] tests: Skip runtime of array length type test on "32-bit"
- Date: Sat, 8 Jan 2022 09:01:47 +0000 (UTC)
commit 333912f6ec4b24e8f949984d2096b71fb65bac30
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Jan 6 08:50:31 2022 +0100
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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]