1""" 2Test process list. 3""" 4 5 6import os 7import lldb 8import shutil 9from lldbsuite.test.decorators import * 10from lldbsuite.test.lldbtest import * 11from lldbsuite.test import lldbutil 12 13 14class ProcessListTestCase(TestBase): 15 16 NO_DEBUG_INFO_TESTCASE = True 17 18 @skipIfWindows # https://bugs.llvm.org/show_bug.cgi?id=43702 19 @skipIfRemote # rdar://problem/66542336 20 def test_process_list_with_args(self): 21 """Test process list show process args""" 22 self.build() 23 exe = self.getBuildArtifact("TestProcess") 24 25 # Spawn a new process 26 popen = self.spawnSubprocess(exe, args=["arg1", "--arg2", "arg3"]) 27 28 substrs = [str(popen.pid), "TestProcess arg1 --arg2 arg3"] 29 30 self.expect("platform process list -v", substrs=substrs) 31