[commit: testsuite] master: Reorder some functions to group them (71ec33f)

Ian Lynagh igloo at earth.li
Wed Feb 13 18:38:57 CET 2013


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

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/71ec33f721ed0b30e42e407cc1f235bf1cb5aeae

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

commit 71ec33f721ed0b30e42e407cc1f235bf1cb5aeae
Author: Ian Lynagh <ian at well-typed.com>
Date:   Wed Feb 13 17:08:52 2013 +0000

    Reorder some functions to group them
    
    Predicates now match the order they are documented on the wiki

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

 driver/testlib.py |   35 +++++++++++++++++------------------
 1 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index 56e1b46..de8ab90 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -304,12 +304,15 @@ def when(b, f):
 def unless(b, f):
     return when(not b, f)
 
-def fast():
-    return config.fast
-
 def doing_ghci():
     return 'ghci' in config.run_ways
 
+def ghci_dynamic( ):
+    return config.ghc_dynamic_by_default
+
+def fast():
+    return config.fast
+
 def platform( plat ):
     return config.platform == plat
 
@@ -322,9 +325,6 @@ def arch( arch ):
 def wordsize( ws ):
     return config.wordsize == str(ws)
 
-def unregisterised( ):
-    return config.unregisterised
-
 def msys( ):
     return config.msys
 
@@ -340,20 +340,12 @@ def have_dynamic( ):
 def have_profiling( ):
     return config.have_profiling
 
-# ---
-
-def ghci_dynamic( ):
-    return config.ghc_dynamic_by_default
-
 def in_tree_compiler( ):
     return config.in_tree_compiler
 
 def compiler_type( compiler ):
     return config.compiler_type == compiler
 
-def compiler_profiled( ):
-    return config.compiler_profiled
-
 def compiler_lt( compiler, version ):
     return config.compiler_type == compiler and \
            version_lt(config.compiler_version, version)
@@ -370,9 +362,20 @@ def compiler_ge( compiler, version ):
     return config.compiler_type == compiler and \
            version_ge(config.compiler_version, version)
 
+def unregisterised( ):
+    return config.unregisterised
+
+def compiler_profiled( ):
+    return config.compiler_profiled
+
 def compiler_debugged( ):
     return config.compiler_debugged
 
+def tag( t ):
+    return t in config.compiler_tags
+
+# ---
+
 def namebase( nb ):
    return lambda opts, nb=nb: _namebase(opts, nb)
 
@@ -381,10 +384,6 @@ def _namebase( opts, nb ):
 
 # ---
 
-def tag( t ):
-    return t in config.compiler_tags
-
-# ---
 def high_memory_usage(name, opts):
     opts.alone = True
 





More information about the ghc-commits mailing list