summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst
diff options
context:
space:
mode:
authorAndrey Loskutov <loskutov@gmx.de>2018-08-19 20:32:00 +0200
committerAndrey Loskutov <loskutov@gmx.de>2018-08-19 20:32:00 +0200
commitc23d024ea8fc4a8330a134138d45e61d60403a97 (patch)
treebbee4e1c1d86cc2f12dec2ba5c556cbfcff94db6 /org.eclipse.jgit.test/tst
parent6e4b9bd274fc50476eecdea1a0babe4972d2a623 (diff)
downloadjgit-c23d024ea8fc4a8330a134138d45e61d60403a97.tar.gz
jgit-c23d024ea8fc4a8330a134138d45e61d60403a97.zip
FilterCommandsTest fails on Windows
Bug: 538068 Change-Id: I3ba6fceef2c34cacc0c37150206379aa93b5e3d0 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java2
1 files changed, 2 insertions, 0 deletions
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 0d31811257..8dfdd0fc7c 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);