summaryrefslogtreecommitdiff
path: root/src/ToolBox/SOS/tests/t_cmd_clrthreads.py
diff options
context:
space:
mode:
authorMike McLaughlin <mikem@microsoft.com>2019-06-20 14:08:55 -0700
committerJan Vorlicek <janvorli@microsoft.com>2019-06-20 23:08:55 +0200
commit6b9a3d3a87825b1a34bd8f114c9b181ce75b3b2e (patch)
tree5a7abae1508a7b0aaf70926c1618c8d4e682a9f5 /src/ToolBox/SOS/tests/t_cmd_clrthreads.py
parentec2a74e7649f1c0ecff32ce86724bf3ca80bfd46 (diff)
downloadcoreclr-6b9a3d3a87825b1a34bd8f114c9b181ce75b3b2e.tar.gz
coreclr-6b9a3d3a87825b1a34bd8f114c9b181ce75b3b2e.tar.bz2
coreclr-6b9a3d3a87825b1a34bd8f114c9b181ce75b3b2e.zip
Remove SOS and lldb plugin (#25220)
* Remove SOS and lldb plugin Issue: https://github.com/dotnet/coreclr/issues/24092
Diffstat (limited to 'src/ToolBox/SOS/tests/t_cmd_clrthreads.py')
-rw-r--r--src/ToolBox/SOS/tests/t_cmd_clrthreads.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/ToolBox/SOS/tests/t_cmd_clrthreads.py b/src/ToolBox/SOS/tests/t_cmd_clrthreads.py
deleted file mode 100644
index 5e374dd062..0000000000
--- a/src/ToolBox/SOS/tests/t_cmd_clrthreads.py
+++ /dev/null
@@ -1,35 +0,0 @@
-# Licensed to the .NET Foundation under one or more agreements.
-# The .NET Foundation licenses this file to you under the MIT license.
-# See the LICENSE file in the project root for more information.
-
-import lldb
-import re
-import testutils as test
-
-
-def runScenario(assembly, debugger, target):
- process = target.GetProcess()
- res = lldb.SBCommandReturnObject()
- ci = debugger.GetCommandInterpreter()
-
- # Run debugger, wait until libcoreclr is loaded,
- # set breakpoint at Test.Main and stop there
- test.stop_in_main(debugger, assembly)
-
- ci.HandleCommand("clrthreads", res)
- print(res.GetOutput())
- print(res.GetError())
- # Interpreter must have this command and able to run it
- test.assertTrue(res.Succeeded())
-
- output = res.GetOutput()
- # Output is not empty
- test.assertTrue(len(output) > 0)
-
- # Specific string must be in the output
- test.assertNotEqual(output.find("ThreadCount:"), -1)
-
- # TODO: test other use cases
-
- # Continue current process and checks its exit code
- test.exit_lldb(debugger, assembly)