summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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