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 NO_DEBUG_INFO_TESTCASE = True 16 17 @skipIfWindows # https://bugs.llvm.org/show_bug.cgi?id=43702 18 @skipIfRemote # rdar://problem/66542336 19 def test_process_list_with_args(self): 20 """Test process list show process args""" 21 self.build() 22 exe = self.getBuildArtifact("TestProcess") 23 24 # Spawn a new process 25 sync_file = lldbutil.append_to_process_working_directory(self, "ready.txt") 26 popen = self.spawnSubprocess(exe, args=[sync_file, "arg1", "--arg2", "arg3"]) 27 lldbutil.wait_for_file_on_target(self, sync_file) 28 29 substrs = [str(popen.pid), "TestProcess", "arg1 --arg2 arg3"] 30 self.expect("platform process list -v", substrs=substrs) 31