MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / __call_process

Function __call_process

test/signal/test-stacktrace.py:21–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 return None
20
21def __call_process():
22 exe = __lookup_cppcheck_exe('test-stacktrace')
23 if exe is None:
24 raise Exception('executable not found')
25 with subprocess.Popen([exe], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p:
26 stdout, stderr = p.communicate()
27 rc = p.returncode
28 stdout = stdout.decode(encoding='utf-8', errors='ignore').replace('\r\n', '\n')
29 stderr = stderr.decode(encoding='utf-8', errors='ignore').replace('\r\n', '\n')
30 return rc, stdout, stderr
31
32
33def test_stack():

Callers 1

test_stackFunction · 0.70

Calls 2

__lookup_cppcheck_exeFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected