[commit: ghc] master: Improve test T14452 for Windows (6090002)

git at git.haskell.org git at git.haskell.org
Tue Dec 4 07:15:58 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6090002e19d5c888c2eda0ce06dd84e3c46aa0c9/ghc

>---------------------------------------------------------------

commit 6090002e19d5c888c2eda0ce06dd84e3c46aa0c9
Author: Roland Senn <rsx at bluewin.ch>
Date:   Tue Dec 4 00:17:47 2018 +0000

    Improve test T14452 for Windows
    
    Summary: Under Windows all parameters to gcc are enclosed in quotes, opposite to
    Linux, where the quotes are missing. Therefore in the test, we remove all
    quotes in the stdout file with sed.
    
    Test Plan: make test TEST=T14452
    
    Reviewers: osa1, hvr, bgamari, monoidal, Phyx, simonpj
    
    Reviewed By: Phyx
    
    Subscribers: rwbarton, carter
    
    GHC Trac Issues: #14452
    
    Differential Revision: https://phabricator.haskell.org/D5398


>---------------------------------------------------------------

6090002e19d5c888c2eda0ce06dd84e3c46aa0c9
 testsuite/tests/driver/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile
index e60df7a..d1bb30f 100644
--- a/testsuite/tests/driver/Makefile
+++ b/testsuite/tests/driver/Makefile
@@ -672,4 +672,5 @@ T12971:
 .PHONY: T14452
 T14452:
 	"$(TEST_HC)" $(TEST_HC_OPTS) -v -c -O2 T14452.hs 2>&1 | grep 'O3' \
-	| awk 'NF{print $$NF; exit}'  # awk: extract last word of line
+	| awk 'NF{print $$NF; exit}' | sed 's/\"//g'
+	# awk: extract last word of line, sed: remove quotes



More information about the ghc-commits mailing list