summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-12-15 15:26:11 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-15 15:26:25 -0500
commit8f0546bfaf47ec865bb0c6dc2cb0ac451367f65a (patch)
treee5d5fd82eef6ac15cbec373de0d9f73e5b71e93f /testsuite/tests/driver
parent4d683fa11a5140b74f588b93f93f7891f79ac891 (diff)
downloadhaskell-8f0546bfaf47ec865bb0c6dc2cb0ac451367f65a.tar.gz
testsuite: Add test for #12971
Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2855 GHC Trac Issues: #12971
Diffstat (limited to 'testsuite/tests/driver')
-rw-r--r--testsuite/tests/driver/Makefile5
-rw-r--r--testsuite/tests/driver/T12971.hs4
-rw-r--r--testsuite/tests/driver/all.T2
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile
index 2dfb41f223..d3f78effec 100644
--- a/testsuite/tests/driver/Makefile
+++ b/testsuite/tests/driver/Makefile
@@ -641,3 +641,8 @@ T10923:
T12955:
! "$(TEST_HC)" $(TEST_HC_OPTS) --make T12955
! "$(TEST_HC)" $(TEST_HC_OPTS) --make T12955 -fbuilding-cabal-package
+
+.PHONY: T12971
+T12971:
+ mkdir -p ä
+ ! TMP=ä "$(TEST_HC)" $(TEST_HC_OPTS) --make T12971
diff --git a/testsuite/tests/driver/T12971.hs b/testsuite/tests/driver/T12971.hs
new file mode 100644
index 0000000000..7b836095d8
--- /dev/null
+++ b/testsuite/tests/driver/T12971.hs
@@ -0,0 +1,4 @@
+-- Test that setting the TMP environment variable to a path with non-ASCII
+-- characters works.
+main :: IO ()
+main = putStrLn "hello world"
diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T
index 9119c715aa..d327ac5104 100644
--- a/testsuite/tests/driver/all.T
+++ b/testsuite/tests/driver/all.T
@@ -501,3 +501,5 @@ test('T10923',
test('T12752pass', normal, compile, ['-DSHOULD_PASS=1 -Wcpp-undef'])
test('T12955', normal, run_command, ['$MAKE -s --no-print-directory T12955'])
+
+test('T12971', expect_broken(12971), run_command, ['$MAKE -s --no-print-directory T12971']) \ No newline at end of file