Git test framework failing on windows99/161199/2
commitae3c3115d685981f6cc4710b3f24ee8293d5af33
authorlgoubet <laurent.goubet@obeo.fr>
Sun, 19 Apr 2020 14:53:43 +0000 (19 16:53 +0200)
committerLaurent Goubet <laurent.goubet@obeo.fr>
Tue, 21 Apr 2020 09:16:50 +0000 (21 05:16 -0400)
tree1d1445c78eab5cf7100d566c45a2b1431ae113df
parent4b76fb320ebad00dd97b8e12760fb078622b04c0
Git test framework failing on windows

FileUtils.delete cannot remove read-only files, and some of the files
creating by EGit/Jgit within the test repositories (.git/objects files)
are set as read-only, leading to test failures because we cannot
clear up the test workspace after each test.

This also changes the test framework to using try-with-resources where
potential errors were identified.

Change-Id: Ibfb54584cc7ccdcae09e56abe0b1c79001e68394
plugins/org.eclipse.emf.compare.ide.ui.tests.git.framework/.classpath
plugins/org.eclipse.emf.compare.ide.ui.tests.git.framework/.settings/org.eclipse.jdt.core.prefs
plugins/org.eclipse.emf.compare.ide.ui.tests.git.framework/META-INF/MANIFEST.MF
plugins/org.eclipse.emf.compare.ide.ui.tests.git.framework/src/org/eclipse/emf/compare/ide/ui/tests/git/framework/internal/statements/AbstractGitOperationStatement.java
plugins/org.eclipse.emf.compare.ide.ui.tests.git.framework/src/org/eclipse/emf/compare/ide/ui/tests/git/framework/internal/statements/InternalGitTestSupport.java
plugins/org.eclipse.emf.compare.ide.ui.tests.git/.classpath
plugins/org.eclipse.emf.compare.ide.ui.tests.git/.settings/org.eclipse.jdt.core.prefs
plugins/org.eclipse.emf.compare.ide.ui.tests.git/src/org/eclipse/emf/compare/ide/ui/tests/egit/CompareGitTestCase.java
plugins/org.eclipse.emf.compare.ide.ui.tests.git/src/org/eclipse/emf/compare/ide/ui/tests/egit/fixture/GitTestRepository.java
plugins/org.eclipse.emf.compare.ide.ui.tests.git/src/org/eclipse/emf/compare/ide/ui/tests/merge/RemoteNewProjectTests.java
plugins/org.eclipse.emf.compare.ide.ui.tests.git/src/org/eclipse/emf/compare/ide/ui/tests/suite/GitTests.java