tests: skip small-stack tests on hppa architecture
On hppa these tests crash because the allocated stack space is too small, even after it was doubled in b9a190789 (and the data size doubled to match) to make it work on powerpc. For this arch just skip these tests, which is enough to make the whole suite pass. Fixes: https://bugs.debian.org/757402 Based-on-patch-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Greg Price <gnprice@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Greg Price committed
May 15, 2020 at 22:33 UTC
ddcfc7c67d7f572d2cf6a30a2ab1c2eb56930e74
1 file changed
+10
-2
t/test-lib.sh
+10
-2
@@ -1467,6 +1467,14 @@ FreeBSD)
1467
;;
1468
esac
1469
1470
+# Detect arches where a few things don't work
1471
+uname_m=$(uname -m)
1472
+case $uname_m in
1473
+parisc* | hppa*)
1474
+ test_set_prereq HPPA
1475
+ ;;
1476
+esac
1477
+
1478
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
1479
test -z "$NO_PERL" && test_set_prereq PERL
1480
test -z "$NO_PTHREADS" && test_set_prereq PTHREADS
@@ -1606,7 +1614,7 @@ run_with_limited_cmdline () {
1614
}
1615
1616
test_lazy_prereq CMDLINE_LIMIT '
1609
- test_have_prereq !MINGW,!CYGWIN &&
1617
+ test_have_prereq !HPPA,!MINGW,!CYGWIN &&
1618
run_with_limited_cmdline true
1619
'
1620
@@ -1615,7 +1623,7 @@ run_with_limited_stack () {
1623
}
1624
1625
test_lazy_prereq ULIMIT_STACK_SIZE '
1618
- test_have_prereq !MINGW,!CYGWIN &&
1626
+ test_have_prereq !HPPA,!MINGW,!CYGWIN &&
1627
run_with_limited_stack true
1628
'
1629