test-import-eol: improve binary hunks test
authorPatrick Mezard <pmezard@gmail.com>
Wed, 23 Dec 2009 19:31:48 +0100
changeset 10130 7936cd261dc9
parent 10129 900ccbd79ef7
child 10131 ef5b537433da
test-import-eol: improve binary hunks test
tests/test-import-eol
tests/test-import-eol.out
--- a/tests/test-import-eol	Wed Dec 23 19:31:48 2009 +0100
+++ b/tests/test-import-eol	Wed Dec 23 19:31:48 2009 +0100
@@ -73,9 +73,9 @@
 hg st
 
 # Test --eol and binary patches
-python -c 'file("b", "wb").write("a\x00\nb")'
+python -c 'file("b", "wb").write("a\x00\nb\r\nd")'
 hg ci -Am addb
-python -c 'file("b", "wb").write("a\x00\nc")'
+python -c 'file("b", "wb").write("a\x00\nc\r\nd")'
 hg diff --git > bin.diff
 hg revert --no-backup b
 echo % binary patch with --eol
--- a/tests/test-import-eol.out	Wed Dec 23 19:31:48 2009 +0100
+++ b/tests/test-import-eol.out	Wed Dec 23 19:31:48 2009 +0100
@@ -24,4 +24,4 @@
 adding b
 % binary patch with --eol
 applying bin.diff
-'a\x00\nc'
+'a\x00\nc\r\nd'