summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2021-12-25 15:29:32 -0800
committerGreg Steuck <blackgnezdo@gmail.com>2022-01-03 05:18:24 +0000
commit80e416aeca87a0133638c5fcb3f5b5ec67feb809 (patch)
tree375f263b86a0e2ff475c41013a26d9565169d327
parentd9e491958fab83d34f261f6adeaf3c8ace71b276 (diff)
downloadhaskell-80e416aeca87a0133638c5fcb3f5b5ec67feb809.tar.gz
Replace `seq` with POSIX-standard in PmSeriesG test
-rwxr-xr-xtestsuite/tests/pmcheck/should_compile/genG4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/genG b/testsuite/tests/pmcheck/should_compile/genG
index f5705213ec..7c062aefc2 100755
--- a/testsuite/tests/pmcheck/should_compile/genG
+++ b/testsuite/tests/pmcheck/should_compile/genG
@@ -35,6 +35,8 @@ g :: ()
g
END
-for i in $(seq -w 1 $SIZE); do
+i=1
+while test $i -lt $SIZE; do
echo " | (A, A) <- f $i = ()" >> $MODULE.hs
+ i=$((i+1))
done