]> source.dussan.org Git - jgit.git/commitdiff
FilterCommandsTest fails on Windows 66/127666/1
authorAndrey Loskutov <loskutov@gmx.de>
Sun, 19 Aug 2018 18:32:00 +0000 (20:32 +0200)
committerAndrey Loskutov <loskutov@gmx.de>
Sun, 19 Aug 2018 18:32:00 +0000 (20:32 +0200)
Bug: 538068
Change-Id: I3ba6fceef2c34cacc0c37150206379aa93b5e3d0
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java

index 0d31811257ef8811a6917d322688a83f6f60ba5e..8dfdd0fc7c4170e8f9b30e30c4361b97e172bc23 100644 (file)
@@ -85,6 +85,8 @@ public class FilterCommandsTest extends RepositoryTestCase {
                                public int run() throws IOException {
                                        int b = in.read();
                                        if (b == -1) {
+                                               in.close();
+                                               out.close();
                                                return b;
                                        }
                                        out.write(prefix);