]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tests: skip small-stack tests on hppa architecture
authorGreg Price <gnprice@gmail.com>
Sat, 16 May 2020 05:33:38 +0000 (22:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 May 2020 17:05:12 +0000 (10:05 -0700)
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>
t/test-lib.sh

index 0ea1e5a05edd86b3923cb82fd503b34ebbe93254..c62961a3e4007fc927332043c3a0b8385e561de9 100644 (file)
@@ -1467,6 +1467,14 @@ FreeBSD)
        ;;
 esac
 
+# Detect arches where a few things don't work
+uname_m=$(uname -m)
+case $uname_m in
+parisc* | hppa*)
+       test_set_prereq HPPA
+       ;;
+esac
+
 ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
 test -z "$NO_PERL" && test_set_prereq PERL
 test -z "$NO_PTHREADS" && test_set_prereq PTHREADS
@@ -1606,7 +1614,7 @@ run_with_limited_cmdline () {
 }
 
 test_lazy_prereq CMDLINE_LIMIT '
-       test_have_prereq !MINGW,!CYGWIN &&
+       test_have_prereq !HPPA,!MINGW,!CYGWIN &&
        run_with_limited_cmdline true
 '
 
@@ -1615,7 +1623,7 @@ run_with_limited_stack () {
 }
 
 test_lazy_prereq ULIMIT_STACK_SIZE '
-       test_have_prereq !MINGW,!CYGWIN &&
+       test_have_prereq !HPPA,!MINGW,!CYGWIN &&
        run_with_limited_stack true
 '