Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2018-10-11 08:59:53 +0000
committerSarika Sinha2018-10-11 09:16:54 +0000
commitfb5b817008012540fb111acd48a7d128c65bd6b9 (patch)
tree0307f13452d4d9b04b0f4f4d15ea55c79df58b0f /org.eclipse.debug.tests
parent8619dcb5b08b7ff36e0daeca31f16de73c006c05 (diff)
downloadeclipse.platform.debug-fb5b817008012540fb111acd48a7d128c65bd6b9.tar.gz
eclipse.platform.debug-fb5b817008012540fb111acd48a7d128c65bd6b9.tar.xz
eclipse.platform.debug-fb5b817008012540fb111acd48a7d128c65bd6b9.zip
Bug 307309 - [console] Some uses of IOConsoleInputStream.available()I20181017-1800
throw IOException for no good reason Change-Id: Iaa7ad7e96bb602532ed7af4c02e35911d26a7e3f
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.debug.tests/pom.xml4
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java13
3 files changed, 16 insertions, 3 deletions
diff --git a/org.eclipse.debug.tests/META-INF/MANIFEST.MF b/org.eclipse.debug.tests/META-INF/MANIFEST.MF
index a62332e0d..0e97d9e66 100644
--- a/org.eclipse.debug.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.debug.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.debug.tests;singleton:=true
-Bundle-Version: 3.11.100.qualifier
+Bundle-Version: 3.11.200.qualifier
Bundle-Activator: org.eclipse.debug.tests.TestsPlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui;bundle-version="[3.6.0,4.0.0)",
diff --git a/org.eclipse.debug.tests/pom.xml b/org.eclipse.debug.tests/pom.xml
index 8d54f45f4..1f098481e 100644
--- a/org.eclipse.debug.tests/pom.xml
+++ b/org.eclipse.debug.tests/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2012, 2017 Eclipse Foundation and others.
+ Copyright (c) 2012, 2018 Eclipse Foundation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
@@ -18,7 +18,7 @@
</parent>
<groupId>org.eclipse.debug</groupId>
<artifactId>org.eclipse.debug.tests</artifactId>
- <version>3.11.100-SNAPSHOT</version>
+ <version>3.11.200-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<properties>
<code.ignoredWarnings>${tests.ignoredWarnings}</code.ignoredWarnings>
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java
index 7ecda8cba..cd9d51eae 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/console/ConsoleTests.java
@@ -15,6 +15,7 @@
package org.eclipse.debug.tests.console;
import java.io.IOException;
+import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import org.eclipse.core.commands.Command;
@@ -187,4 +188,16 @@ public class ConsoleTests extends AbstractDebugTest {
activePage.hideView(consoleView);
}
}
+
+ public void testIOConsoleAvailable() throws Exception {
+
+ final IOConsole console = new IOConsole("", null);
+
+ try (InputStream consoleInput = console.getInputStream()) {
+ consoleInput.available();
+ consoleInput.available();
+ } catch (IOException ioe) {
+ TestCase.assertEquals("Input Stream is closed", ioe.getMessage()); //$NON-NLS-1$
+ }
+ }
}

Back to the top