summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi/should_run
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krz.gogolewski@gmail.com>2014-10-01 23:41:27 +0200
committerKrzysztof Gogolewski <krz.gogolewski@gmail.com>2014-10-01 23:41:27 +0200
commit084d241b316bfa12e41fc34cae993ca276bf0730 (patch)
tree2c51250374dd6419d2c2db2c16e3dff06c7206e9 /testsuite/tests/ffi/should_run
parent2a8856884de7d476e26b4ffa829ccb3a14d6f63e (diff)
downloadhaskell-084d241b316bfa12e41fc34cae993ca276bf0730.tar.gz
Basic Python 3 support for testsuite driver (Trac #9184)
Summary: Most of the changes is adaptation of old Python 2 only code. My priority was not breaking Python 2, and so I avoided bigger changes to the driver. In particular, under Python 3 the output is a str and buffering cannot be disabled. To test, define PYTHON=python3 in testsuite/mk/boilerplate.mk. Thanks to aspidites <emarshall85@gmail.com> who provided the initial patch. Test Plan: validate under 2 and 3 Reviewers: hvr, simonmar, thomie, austin Reviewed By: thomie, austin Subscribers: aspidites, thomie, simonmar, ezyang, carter Differential Revision: https://phabricator.haskell.org/D233 GHC Trac Issues: #9184
Diffstat (limited to 'testsuite/tests/ffi/should_run')
-rw-r--r--testsuite/tests/ffi/should_run/all.T10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/tests/ffi/should_run/all.T b/testsuite/tests/ffi/should_run/all.T
index 7efc6eb3d8..6fe087884d 100644
--- a/testsuite/tests/ffi/should_run/all.T
+++ b/testsuite/tests/ffi/should_run/all.T
@@ -50,10 +50,10 @@ test('ffi008', [exit_code(1), omit_ways(['ghci'])], compile_and_run, [''])
maybe_skip = normal
opts = ''
if config.platform.startswith('i386-'):
- if config.compiler_type == 'ghc' and \
+ if config.compiler_type == 'ghc' and \
version_ge(config.compiler_version, '6.13'):
- opts = '-msse2'
- else:
+ opts = '-msse2'
+ else:
maybe_skip = only_ways(['ghci'])
test('ffi009', [when(fast(), skip),
@@ -69,9 +69,9 @@ test('ffi011', normal, compile_and_run, [''])
# it.
if config.os == 'mingw32':
- skip_if_not_windows = normal
+ skip_if_not_windows = normal
else:
- skip_if_not_windows = skip
+ skip_if_not_windows = skip
test('ffi012', skip_if_not_windows, compile_and_run, [''])
test('ffi013', normal, compile_and_run, [''])