From a8247dd7caa97f502e10971a1feb5d2f4e346253 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 23 Jun 2014 17:51:32 +0200 Subject: [PATCH] GroovyDebuggerTest: bre prepared to exceptions in debugger-managed code --- .../plugins/groovy/compiler/GroovyDebuggerTest.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy index a7a25254cfeb..5d1ba8dcae31 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyDebuggerTest.groovy @@ -437,8 +437,12 @@ public static void main(String[] args) { debugProcess.managerThread.invoke(new DebuggerContextCommandImpl(ctx) { @Override void threadAction() { - result = cl() - semaphore.up() + try { + result = cl() + } + finally { + semaphore.up() + } } @Override