Skip to content

Commit

Permalink
plugins/valgrind.py: avoid interleaved XML output
Browse files Browse the repository at this point in the history
... of multiple processes after fork

Closes: https://github.com/kdudka/csmock/pull/27
  • Loading branch information
kdudka committed Jan 7, 2021
1 parent 11ae182 commit 75d846d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/plugins/valgrind.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def create_cap_dir_hook(results, mock):
wrap_cmd_list = ["valgrind",
"--xml=yes",
"--xml-file=%s/pid-%%p-%%n.xml" % VALGRIND_CAPTURE_DIR,
"--log-file=%s/pid-%%p-%%n.log" % VALGRIND_CAPTURE_DIR]
"--log-file=%s/pid-%%p-%%n.log" % VALGRIND_CAPTURE_DIR,
"--child-silent-after-fork=yes"]

# append custom args if specified
wrap_cmd_list += args.valgrind_add_flag
Expand Down

0 comments on commit 75d846d

Please sign in to comment.