{"thread":{"id":"53486","subject":"[PATCH] tests: skip small-stack tests on hppa architecture","startedAt":"2020-05-16T05:35:19Z","lastAt":"2020-05-16T05:35:19Z","messageCount":1,"participants":["Greg Price"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"397954","messageId":"619484ae49dc71d8e9885390f78cdc25a87d8cc4.1589607218.git.gnprice@gmail.com","threadId":"53486","inReplyTo":null,"subject":"[PATCH] tests: skip small-stack tests on hppa architecture","fromName":"Greg Price","fromEmail":"gnprice@gmail.com","sentAt":"2020-05-16T05:33:38Z","receivedAt":"2020-05-16T05:35:19Z","isPatch":true,"sender":{"key":"gnprice@gmail.com","avatar":null},"body":"On hppa these tests crash because the allocated stack space is too\nsmall, even after it was doubled in b9a190789 (and the data size\ndoubled to match) to make it work on powerpc.  For this arch just\nskip these tests, which is enough to make the whole suite pass.\n\nFixes: https://bugs.debian.org/757402\nBased-on-patch-by: John David Anglin <dave.anglin@bell.net>\nSigned-off-by: Greg Price <gnprice@gmail.com>\n---\n t/test-lib.sh | 12 ++++++++++--\n 1 file changed, 10 insertions(+), 2 deletions(-)\n\ndiff --git a/t/test-lib.sh b/t/test-lib.sh\nindex 0ea1e5a05..c62961a3e 100644\n--- a/t/test-lib.sh\n+++ b/t/test-lib.sh\n@@ -1467,6 +1467,14 @@ FreeBSD)\n \t;;\n esac\n \n+# Detect arches where a few things don't work\n+uname_m=$(uname -m)\n+case $uname_m in\n+parisc* | hppa*)\n+\ttest_set_prereq HPPA\n+\t;;\n+esac\n+\n ( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1\n test -z \"$NO_PERL\" && test_set_prereq PERL\n test -z \"$NO_PTHREADS\" && test_set_prereq PTHREADS\n@@ -1606,16 +1614,16 @@ run_with_limited_cmdline () {\n }\n \n test_lazy_prereq CMDLINE_LIMIT '\n-\ttest_have_prereq !MINGW,!CYGWIN &&\n+\ttest_have_prereq !HPPA,!MINGW,!CYGWIN &&\n \trun_with_limited_cmdline true\n '\n \n run_with_limited_stack () {\n \t(ulimit -s 128 && \"$@\")\n }\n \n test_lazy_prereq ULIMIT_STACK_SIZE '\n-\ttest_have_prereq !MINGW,!CYGWIN &&\n+\ttest_have_prereq !HPPA,!MINGW,!CYGWIN &&\n \trun_with_limited_stack true\n '\n \n-- \n2.26.2\n\n"}]}