summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-11 14:03:23 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-11 14:03:23 +0000
commit5382010aeae8b9fa3ce93cd2f1b714eeb2bd31fb (patch)
treea42a10abaeaf9472749880c2f8d66fa42be318b7 /testsuite/driver
parent40f960dab8ec0c4c133727baaa649664ee4953db (diff)
downloadhaskell-5382010aeae8b9fa3ce93cd2f1b714eeb2bd31fb.tar.gz
Change '{if,unless}_arch' to 'arch'
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/testlib.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index b9104fc881..02c7ba32b8 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -322,17 +322,8 @@ def platform( plat ):
def opsys( os ):
return config.os == os
-def if_arch( arch, f ):
- if config.arch == arch:
- return f
- else:
- return normal
-
-def unless_arch( arch, f ):
- if config.arch == arch:
- return normal
- else:
- return f
+def arch( arch ):
+ return config.arch == arch
def wordsize( ws ):
return config.wordsize == str(ws)