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

Function __call_process

test/signal/test-signalhandler.py:25–34  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

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

Callers 4

test_assertFunction · 0.70
test_abortFunction · 0.70
test_segvFunction · 0.70
test_fpeFunction · 0.70

Calls 2

__lookup_cppcheck_exeFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected