]> source.dussan.org Git - jgit.git/commit
[test] Fix ApplyCommandTest for Windows 83/190183/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 30 Jan 2022 20:27:33 +0000 (21:27 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sun, 30 Jan 2022 20:28:03 +0000 (21:28 +0100)
commitf8eb530711179ed13b9af3cc9ee2e34ccf6b1b5d
treef5e4874682b0a7ba5089663bbb67c99c3393505f
parent002e13f0f639311f2a1ecd307d4bb18367eab9be
[test] Fix ApplyCommandTest for Windows

Some tests checked whether or not a file is executable via
java.io.File.canExecute(). But that always returns true on Windows.

Use FS.DETECTED.canExecute() instead, and guard all such assertions to
run only of file systems that do support the "execute" flag.

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