From 7afdc50165eb1bc2f7d69ef529ffe4b7ebedd03e Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Tue, 12 Apr 2016 13:44:30 -0400 Subject: [PATCH] Fix Stand-alone debugger SWTBot test A bug was fixed in SWTBot and it doesn't throw IndexOutOfBoundsException anymore. A test was relying on that. Change-Id: I807aaa773b8544172cf33cbf1a04583fe171bd51 Signed-off-by: Marc-Andre Laperle --- .../eclipse/cdt/debug/application/tests/StandaloneTest1.java | 2 +- releng/org.eclipse.cdt.target/cdt.target | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.application.tests/src/org/eclipse/cdt/debug/application/tests/StandaloneTest1.java b/debug/org.eclipse.cdt.debug.application.tests/src/org/eclipse/cdt/debug/application/tests/StandaloneTest1.java index 988a349d413..7ee5899ad5a 100644 --- a/debug/org.eclipse.cdt.debug.application.tests/src/org/eclipse/cdt/debug/application/tests/StandaloneTest1.java +++ b/debug/org.eclipse.cdt.debug.application.tests/src/org/eclipse/cdt/debug/application/tests/StandaloneTest1.java @@ -84,7 +84,7 @@ public class StandaloneTest1 extends StandaloneTest { @SuppressWarnings("unused") SWTBotMenu projectMenu = textMenu.menu("Project"); notThere = bot.menu("Project", 1); - } catch (IndexOutOfBoundsException e) { + } catch (WidgetNotFoundException e) { // correct } assertNull(notThere); diff --git a/releng/org.eclipse.cdt.target/cdt.target b/releng/org.eclipse.cdt.target/cdt.target index b6c9539902d..551e9e8829c 100644 --- a/releng/org.eclipse.cdt.target/cdt.target +++ b/releng/org.eclipse.cdt.target/cdt.target @@ -1,5 +1,5 @@ - +