]> source.dussan.org Git - jgit.git/commit
[test] Fix EolRepositoryTest for eol=native 15/190215/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Mon, 31 Jan 2022 23:52:36 +0000 (00:52 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Mon, 31 Jan 2022 23:54:24 +0000 (00:54 +0100)
commit58d203fc7f97706183b4427e2175dac400cd1dca
tree5df929cb86ccc94a6e21c7d01bb905a49f2a1bdc
parent8dcb86b602c02f8f3f310f2b3a5b13ef4bb5f11b
[test] Fix EolRepositoryTest for eol=native

On Windows eol=native, which is also the default if nothing else
overrides it, means convert text files to CRLF on checkout.

Adapt tests for this. Also don't fiddle with the real system property
"line.separator", use the mocked SystemReader for this.

Bug: 550111
Change-Id: Ie19b80fc543fa4970d6d9f181041c5f4d6ef3ed4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/EolRepositoryTest.java