Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/229faa0ceb6309ff03d2f0e61272f1730a330fea

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

commit 229faa0ceb6309ff03d2f0e61272f1730a330fea
Author: Ian Lynagh <[email protected]>
Date:   Tue Jul 19 13:35:32 2011 +0100

    Fix a driver problem with older versions of python

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

 driver/testlib.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index ddd6e23..2ad5764 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -814,7 +814,9 @@ def do_compile( name, way, should_fail, top_mod, 
extra_mods, extra_hc_opts ):
        return result
     extra_hc_opts = result['hc_opts']
 
-    force = 1 if extra_mods else 0
+    force = 0
+    if extra_mods:
+       force = 1
     result = simple_build( name, way, extra_hc_opts, should_fail, top_mod, 0, 
1, force)
 
     if badResult(result):



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to