Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
a62ce115
by Andreas Klebinger at 2025-09-19T18:26:18-04:00
3 changed files:
- testsuite/tests/driver/j-space/Makefile
- testsuite/tests/driver/j-space/all.T
- testsuite/tests/driver/j-space/genJspace
Changes:
| ... | ... | @@ -5,5 +5,5 @@ include $(TOP)/mk/test.mk |
| 5 | 5 | jspace:
|
| 6 | 6 | ./genJspace
|
| 7 | 7 | "$(TEST_HC)" $(TEST_HC_OPTS) -Wall -Werror -v0 jspace.hs -rtsopts -package ghc -threaded
|
| 8 | - ./jspace$(exeext) +RTS -N -hT --no-automatic-heap-samples -RTS "`'$(TEST_HC)' --print-libdir | tr -d '\r'`"
|
|
| 8 | + ./jspace$(exeext) +RTS -N3 -qn2 -hT --no-automatic-heap-samples -RTS "`'$(TEST_HC)' --print-libdir | tr -d '\r'`"
|
|
| 9 | 9 |
| 1 | -test('jspace', [extra_files(['genJspace']), req_target_smp, req_ghc_smp, js_broken(22573)], makefile_test, ['jspace']) |
|
| 1 | +# For slightly unclear reasons this test sometimes performs terribly on arm.
|
|
| 2 | +# For the moment we simply give it a slightly higher timeout to address this.
|
|
| 3 | +test('jspace', [extra_files(['genJspace']), req_target_smp, req_ghc_smp, js_broken(22573)
|
|
| 4 | + , run_timeout_multiplier(2) ], makefile_test, ['jspace']) |
| ... | ... | @@ -9,25 +9,22 @@ DEPTH=8 |
| 9 | 9 | WIDTH=40
|
| 10 | 10 | echo "module JSpaceTest where" > JSpaceTest.hs
|
| 11 | 11 | echo "module W where" > W.hs
|
| 12 | - for j in $(seq -w 1 300); do
|
|
| 13 | - echo "w$j = 123" >> W.hs;
|
|
| 14 | - done
|
|
| 12 | + |
|
| 13 | +awk -v len="10" 'BEGIN {for (i=1;i<=len;i++) print "w"i" = 123"}' >> W.hs
|
|
| 14 | + |
|
| 15 | 15 | for i in $(seq -w 1 $WIDTH); do
|
| 16 | 16 | echo "module W$i where" > W$i.hs;
|
| 17 | 17 | echo "import W" >> W$i.hs;
|
| 18 | 18 | echo "import W$i" >> JSpaceTest.hs;
|
| 19 | - for j in $(seq -w 1 1000); do
|
|
| 20 | - echo "w$j = 123" >> W$i.hs;
|
|
| 21 | - done
|
|
| 19 | + awk -v len="1000" 'BEGIN {for (i=1;i<=len;i++) print "w"i" = 123"}' >> W$i.hs;
|
|
| 22 | 20 | done
|
| 21 | + |
|
| 23 | 22 | echo "module H0 where" > H0.hs;
|
| 24 | 23 | echo "import {-# SOURCE #-} H$DEPTH" >> H0.hs;
|
| 25 | 24 | echo "import H$DEPTH" >> JSpaceTest.hs;
|
| 26 | 25 | for i in $(seq -w 1 $DEPTH); do
|
| 27 | 26 | echo "module H$i where" > H$i.hs;
|
| 28 | 27 | echo "import H$((i-1))" >> H$i.hs;
|
| 29 | - for j in $(seq -w 1 100); do
|
|
| 30 | - echo "h$j = 123" >> H$i.hs;
|
|
| 31 | - done
|
|
| 28 | + awk -v len="100" 'BEGIN {for (i=1;i<=len;i++) print "h"i" = 123"}' >> H$i.hs;
|
|
| 32 | 29 | done
|
| 33 | 30 | echo "module H$DEPTH where" > H$DEPTH.hs-boot; |