From c23d024ea8fc4a8330a134138d45e61d60403a97 Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Sun, 19 Aug 2018 20:32:00 +0200 Subject: [PATCH] FilterCommandsTest fails on Windows Bug: 538068 Change-Id: I3ba6fceef2c34cacc0c37150206379aa93b5e3d0 Signed-off-by: Andrey Loskutov --- .../tst/org/eclipse/jgit/util/FilterCommandsTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java index 0d3181125..8dfdd0fc7 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java @@ -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);