testsuite: Add test for #12971
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 15 Dec 2016 20:26:11 +0000 (15:26 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 15 Dec 2016 20:26:25 +0000 (15:26 -0500)
Test Plan: Validate

Reviewers: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2855

GHC Trac Issues: #12971

testsuite/tests/driver/Makefile
testsuite/tests/driver/T12971.hs [new file with mode: 0644]
testsuite/tests/driver/all.T

index 2dfb41f..d3f78ef 100644 (file)
@@ -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 (file)
index 0000000..7b83609
--- /dev/null
@@ -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"
index 9119c71..d327ac5 100644 (file)
@@ -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