Skip to content

Commit 1f7f78f

Browse files
committed
fix test script
1 parent 74a0b01 commit 1f7f78f

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

src/tests/SOS.UnitTests/Debuggees/ThreadApartment/ThreadApartment.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,8 @@ private static void Main()
3636
s_staReady.Wait();
3737
s_mtaReady.Wait();
3838

39-
// If a debugger is attached, break into it. Otherwise just wait.
40-
if (Debugger.IsAttached)
41-
{
42-
Debugger.Break();
43-
}
44-
else
45-
{
46-
Console.WriteLine("Ready for dump capture");
47-
Thread.Sleep(Timeout.Infinite);
48-
}
39+
Debugger.Break();
40+
41+
throw new Exception("ThreadApartment test complete");
4942
}
5043
}

src/tests/SOS.UnitTests/Scripts/ThreadApartment.script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This test is Windows-only since apartment state is a Windows COM concept.
44
#
55

6+
CONTINUE
7+
68
LOADSOS
79

810
# Verify that clrthreads shows the apartment state column with STA and MTA values.

0 commit comments

Comments
 (0)