Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
90f99f75
Commit
90f99f75
authored
7 years ago
by
Vitaliy.Bibaev
Browse files
Options
Download
Email Patches
Plain Diff
Do not allow hangs in the stream debugger tests
parent
14763fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/stream-debugger/src/com/intellij/debugger/streams/test/TraceExecutionTestCase.java
+14
-2
...ntellij/debugger/streams/test/TraceExecutionTestCase.java
with
14 additions
and
2 deletions
+14
-2
plugins/stream-debugger/src/com/intellij/debugger/streams/test/TraceExecutionTestCase.java
+
14
-
2
View file @
90f99f75
...
...
@@ -29,7 +29,6 @@ import org.jetbrains.annotations.NotNull;
import
org.jetbrains.annotations.Nullable
;
import
java.io.File
;
import
java.lang.reflect.InvocationTargetException
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.function.Function
;
...
...
@@ -92,7 +91,7 @@ public abstract class TraceExecutionTestCase extends DebuggerTestCase {
}
private
void
doTestImpl
(
boolean
isResultNull
,
@NotNull
String
className
,
@NotNull
ChainSelector
chainSelector
)
throws
InterruptedException
,
ExecutionException
,
InvocationTarget
Exception
{
throws
Execution
Exception
{
createLocalProcess
(
className
);
final
XDebugSession
session
=
getDebuggerSession
().
getXDebugSession
();
assertNotNull
(
session
);
...
...
@@ -110,7 +109,20 @@ public abstract class TraceExecutionTestCase extends DebuggerTestCase {
resume
();
return
;
}
try
{
sessionPausedImpl
();
}
catch
(
Throwable
t
)
{
println
(
"Exception caught: "
+
t
+
", "
+
t
.
getMessage
(),
ProcessOutputTypes
.
SYSTEM
);
//noinspection CallToPrintStackTrace
t
.
printStackTrace
();
resume
();
}
}
private
void
sessionPausedImpl
()
{
printContext
(
getDebugProcess
().
getDebuggerContext
());
final
StreamChain
chain
=
ApplicationManager
.
getApplication
().
runReadAction
((
Computable
<
StreamChain
>)()
->
{
final
PsiElement
elementAtBreakpoint
=
positionResolver
.
getNearestElementToBreakpoint
(
session
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help