Commit cbc8f104 authored by Ian Lynagh's avatar Ian Lynagh

Expect 4006 to fail on msys

In the 65001 codepage, we can't even cat the expected output on msys:
$ cat 4006.stdout
It works here
cat: write error: Permission denied
parent 0da9cdbb
......@@ -106,6 +106,14 @@ if config.use_threads == 1:
print "Warning: Ignoring request to use threads as running on Windows"
config.use_threads = 0
config.cygwin = False
config.msys = False
if windows:
if cygwin:
config.cygwin = True
else:
config.msys = True
# Try to use UTF8
if windows:
import ctypes
......
......@@ -278,6 +278,18 @@ def if_wordsize( ws, f ):
else:
return normal
def if_msys( f ):
if config.msys:
return f
else:
return normal
def if_cygwin( f ):
if config.cygwin:
return f
else:
return normal
# ---
def if_in_tree_compiler( f ):
......
......@@ -57,4 +57,9 @@ test('stableptr005', normal, compile_and_run, [''])
test('weak001', normal, compile_and_run, [''])
test('4006', normal, compile_and_run, [''])
# In the 65001 codepage, we can't even cat the expected output on msys:
# $ cat 4006.stdout
# It works here
# cat: write error: Permission denied
test('4006', if_msys(expect_fail), compile_and_run, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment