Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/Mono.Debugger.Soft/Test/dtest.cs')
-rw-r--r--mcs/class/Mono.Debugger.Soft/Test/dtest.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs
index 78be9f85a2d..088fe98b087 100644
--- a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs
+++ b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs
@@ -10,6 +10,7 @@ using Diag = System.Diagnostics;
using System.Linq;
using System.IO;
using System.Security.Cryptography;
+using System.Threading.Tasks;
using NUnit.Framework;
@@ -4287,6 +4288,25 @@ public class DebuggerTests
}
[Test]
+ public void StepOutAsync () {
+ vm.Detach ();
+ Start (new string [] { "dtest-app.exe", "step-out-void-async" });
+ var e = run_until ("step_out_void_async_2");
+ create_step (e);
+ var e2 = step_out ();
+ assert_location (e2, "MoveNext");//we are in step_out_void_async
+ step_req.Disable ();
+ step_req.Depth = StepDepth.Out;
+ step_req.Enable ();
+ vm.Resume ();
+ var e3 = GetNextEvent ();
+ //after step-out from async void, execution should continue
+ //and runtime should exit
+ Assert.IsTrue (e3 is VMDeathEvent, e3.GetType().FullName);
+ vm = null;
+ }
+
+ [Test]
[Category("NotWorking")]
public void ShouldCorrectlyStepOverOnExitFromArgsAfterStepInMethodParameter() {
Event e = run_until ("ss_nested_with_two_args_wrapper");