Skip to content

Commit ddcfc7c

Browse files
gnpricegitster
authored andcommitted
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 b9a1907 (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 <[email protected]> Signed-off-by: Greg Price <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent af6b65d commit ddcfc7c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

t/test-lib.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,14 @@ FreeBSD)
14671467
;;
14681468
esac
14691469

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+
14701478
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
14711479
test -z "$NO_PERL" && test_set_prereq PERL
14721480
test -z "$NO_PTHREADS" && test_set_prereq PTHREADS
@@ -1606,7 +1614,7 @@ run_with_limited_cmdline () {
16061614
}
16071615

16081616
test_lazy_prereq CMDLINE_LIMIT '
1609-
test_have_prereq !MINGW,!CYGWIN &&
1617+
test_have_prereq !HPPA,!MINGW,!CYGWIN &&
16101618
run_with_limited_cmdline true
16111619
'
16121620

@@ -1615,7 +1623,7 @@ run_with_limited_stack () {
16151623
}
16161624

16171625
test_lazy_prereq ULIMIT_STACK_SIZE '
1618-
test_have_prereq !MINGW,!CYGWIN &&
1626+
test_have_prereq !HPPA,!MINGW,!CYGWIN &&
16191627
run_with_limited_stack true
16201628
'
16211629

0 commit comments

Comments
 (0)