[Git][ghc/ghc][wip/T22484] testsuite: Don't use grep -q in unpack_sums_7
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Wed Nov 23 13:53:25 UTC 2022
Ben Gamari pushed to branch wip/T22484 at Glasgow Haskell Compiler / GHC
Commits:
b4e60521 by Ben Gamari at 2022-11-23T08:53:19-05:00
testsuite: Don't use grep -q in unpack_sums_7
`grep -q` closes stdin as soon as it finds the pattern it is looking
for, resulting in #22484.
- - - - -
3 changed files:
- testsuite/tests/unboxedsums/Makefile
- − testsuite/tests/unboxedsums/unpack_sums_7.stderr
- + testsuite/tests/unboxedsums/unpack_sums_7.stdout
Changes:
=====================================
testsuite/tests/unboxedsums/Makefile
=====================================
@@ -6,6 +6,6 @@ include $(TOP)/mk/test.mk
unpack_sums_7:
$(RM) -f unpack_sums_7.o unpack_sums_7.hi
- '$(TEST_HC)' $(TEST_HC_OPTS) -c unpack_sums_7.hs -O -dsuppress-all -ddump-simpl | grep -q '\(# |_ #\)'
+ '$(TEST_HC)' $(TEST_HC_OPTS) -c unpack_sums_7.hs -O -dsuppress-all -dsuppress-uniques -ddump-simpl | grep '\(# |_ #\)'
# This is a test to check for the presence of an unboxed sum in the core for a program using UNPACK
# on a sum type which is evidence that the field has been correctly unpacked.
=====================================
testsuite/tests/unboxedsums/unpack_sums_7.stderr deleted
=====================================
@@ -1,2 +0,0 @@
-Exception during Weak# finalization (ignored): <stdout>: hFlush: resource vanished (Broken pipe)
-Exception during Weak# finalization (ignored): <stdout>: hFlush: resource vanished (Broken pipe)
=====================================
testsuite/tests/unboxedsums/unpack_sums_7.stdout
=====================================
@@ -0,0 +1,2 @@
+ JI unbx -> (# |_ #) unbx
+t = MkT ((# |_ #) t1)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b4e605218fea4aeb85bf0ec7da9fe0920e414c19
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b4e605218fea4aeb85bf0ec7da9fe0920e414c19
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221123/9006a467/attachment-0001.html>
More information about the ghc-commits
mailing list