Mercurial > public > mercurial-scm > hg-stable
diff tests/test-merge-symlinks @ 7080:a6477aa893b8
tests: Windows compatibility fixes
- printenv.py, md5sum.py, simplemerge, test-archive, test-merge1,
test-merge-symlinks: set standard streams to binary mode
- test-encode: replace "gunzip" by "gzip -d"
- test-hup: requires fifo
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 12 Oct 2008 19:11:59 +0200 |
parents | 36794dbe66a3 |
children |
line wrap: on
line diff
--- a/tests/test-merge-symlinks Sun Oct 12 19:11:56 2008 +0200 +++ b/tests/test-merge-symlinks Sun Oct 12 19:11:59 2008 +0200 @@ -2,7 +2,14 @@ cat > echo.py <<EOF #!/usr/bin/env python -import os +import os, sys +try: + import msvcrt + msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) + msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) +except ImportError: + pass + for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): print k, os.environ[k] EOF