[commit: packages/process] master: Use Python format string for GHC test T4198 (acfb062)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 11:38:24 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/acfb062c05d12c31d49b06eaa093f8068788c7a8/process

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

commit acfb062c05d12c31d49b06eaa093f8068788c7a8
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Sun Mar 8 12:11:11 2015 +0100

    Use Python format string for GHC test T4198
    
    The ghc test framework calls `cmd.format(**config.__dict__)` before running
    `cmd`, and `config.compiler` is already quoted.


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

acfb062c05d12c31d49b06eaa093f8068788c7a8
 tests/all.T | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/all.T b/tests/all.T
index 292f730..ee9d7c7 100644
--- a/tests/all.T
+++ b/tests/all.T
@@ -22,7 +22,7 @@ test('T3231',
      compile_and_run,
      [''])
 test('T4198',
-     [pre_cmd('\'' + config.compiler + '\'' + ' exitminus1.c -no-hs-main -o exitminus1'),
+     [pre_cmd('{compiler} exitminus1.c -no-hs-main -o exitminus1'),
       extra_clean(['exitminus1.o', 'exitminus1', 'exitminus1.exe'])],
      compile_and_run,
      [''])



More information about the ghc-commits mailing list