summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghc-regress/driver/all.T2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/ghc-regress/driver/all.T b/testsuite/tests/ghc-regress/driver/all.T
index 2c8d4d9a69..130bf3b24b 100644
--- a/testsuite/tests/ghc-regress/driver/all.T
+++ b/testsuite/tests/ghc-regress/driver/all.T
@@ -304,7 +304,7 @@ test('dynHelloWorld',
# simple test that we can load and use the GHC package in all ways
# (in #5313 it was failing the dyn way)
p = subprocess.Popen([config.compiler, "--print-libdir"], stdout=subprocess.PIPE)
-libdir = p.stdout.read()
+libdir = chop(p.stdout.read())
p.stdout.close
test('5313', extra_run_opts(libdir), compile_and_run, ['-package ghc'])