summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-07-09 11:54:28 -0400
committerBen Gamari <ben@well-typed.com>2019-07-18 20:55:11 -0400
commitb62a2dfb31a95b99d7981c6855edda4ea8097a75 (patch)
treed4153e9e194db8aab1e5c8944e06a7f5a4d15ddd /testsuite/driver
parentb16cabc1b7ea1fd087df8f9ab977da629c92af9f (diff)
downloadhaskell-b62a2dfb31a95b99d7981c6855edda4ea8097a75.tar.gz
testsuite: Fix some ints used as bools
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/testlib.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 5b94c63073..116d4d9e22 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1114,37 +1114,37 @@ def ghci_script( name, way, script):
# Compile-only tests
def compile( name, way, extra_hc_opts ):
- return do_compile( name, way, 0, None, [], extra_hc_opts )
+ return do_compile( name, way, False, None, [], extra_hc_opts )
def compile_fail( name, way, extra_hc_opts ):
- return do_compile( name, way, 1, None, [], extra_hc_opts )
+ return do_compile( name, way, True, None, [], extra_hc_opts )
def backpack_typecheck( name, way, extra_hc_opts ):
- return do_compile( name, way, 0, None, [], "-fno-code -fwrite-interface " + extra_hc_opts, backpack=True )
+ return do_compile( name, way, False, None, [], "-fno-code -fwrite-interface " + extra_hc_opts, backpack=True )
def backpack_typecheck_fail( name, way, extra_hc_opts ):
- return do_compile( name, way, 1, None, [], "-fno-code -fwrite-interface " + extra_hc_opts, backpack=True )
+ return do_compile( name, way, True, None, [], "-fno-code -fwrite-interface " + extra_hc_opts, backpack=True )
def backpack_compile( name, way, extra_hc_opts ):
- return do_compile( name, way, 0, None, [], extra_hc_opts, backpack=True )
+ return do_compile( name, way, False, None, [], extra_hc_opts, backpack=True )
def backpack_compile_fail( name, way, extra_hc_opts ):
- return do_compile( name, way, 1, None, [], extra_hc_opts, backpack=True )
+ return do_compile( name, way, True, None, [], extra_hc_opts, backpack=True )
def backpack_run( name, way, extra_hc_opts ):
return compile_and_run__( name, way, None, [], extra_hc_opts, backpack=True )
def multimod_compile( name, way, top_mod, extra_hc_opts ):
- return do_compile( name, way, 0, top_mod, [], extra_hc_opts )
+ return do_compile( name, way, False, top_mod, [], extra_hc_opts )
def multimod_compile_fail( name, way, top_mod, extra_hc_opts ):
- return do_compile( name, way, 1, top_mod, [], extra_hc_opts )
+ return do_compile( name, way, True, top_mod, [], extra_hc_opts )
def multi_compile( name, way, top_mod, extra_mods, extra_hc_opts ):
- return do_compile( name, way, 0, top_mod, extra_mods, extra_hc_opts)
+ return do_compile( name, way, False, top_mod, extra_mods, extra_hc_opts)
def multi_compile_fail( name, way, top_mod, extra_mods, extra_hc_opts ):
- return do_compile( name, way, 1, top_mod, extra_mods, extra_hc_opts)
+ return do_compile( name, way, True, top_mod, extra_mods, extra_hc_opts)
def do_compile(name: TestName,
way: WayName,