Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

3 changed files:

Changes:

  • libraries/base/tests/perf/Makefile
    ... ... @@ -12,4 +12,4 @@ T17752:
    12 12
     	# All occurrences of elem should be optimized away.
    
    13 13
     	# For strings these should result in loops after inlining foldCString.
    
    14 14
     	# For lists it should result in a case expression.
    
    15
    -	echo $$(cat T17752.dump-simpl | grep "elem" -A4 )
    15
    +	echo $$(grep -A4 "elem" T17752.dump-simpl)

  • testsuite/tests/driver/T16318/Makefile
    ... ... @@ -7,5 +7,5 @@ test_pe = test-package-environment
    7 7
     T16318:
    
    8 8
     	"$(GHC_PKG)" field base id --simple-output >  $(test_pe)
    
    9 9
     	"$(TEST_HC)" $(TEST_HC_OPTS) -v1 -ignore-dot-ghci -package-env $(test_pe) -e "putStrLn \"Hello\"" > out 2>&1
    
    10
    -	C=`cat out | grep "Loaded package environment" -c` ; \
    
    10
    +	C=`grep -c "Loaded package environment" out` ; \
    
    11 11
     	if [ $$C != "1" ]; then false; fi

  • testsuite/tests/driver/T18125/Makefile
    ... ... @@ -9,5 +9,5 @@ T18125:
    9 9
     	"$(GHC_PKG)" field base id --simple-output >  $(test_pe)
    
    10 10
     	"$(GHC_PKG)" field $(test_lib) id --simple-outpu >> $(test_pe)
    
    11 11
     	"$(TEST_HC)" $(TEST_HC_OPTS) -Wunused-packages -package-env $(test_pe) T18125.hs > out 2>&1
    
    12
    -	C=`cat out | grep "$(test_lib)" -c` ; \
    
    12
    +	C=`grep -c "$(test_lib)" out` ; \
    
    13 13
     	if [ $$C != "1" ]; then false; fi