def METHOD_NAME(self):
    self.setup_step(cppcheck.Cppcheck(extra_args=['--my-param=5']))
    self.expect_commands(
        ExpectShell(workdir='wkdir', command=[
                    'cppcheck', '.', '--my-param=5'])
        .stdout('Checking file1.c...\n'
                '[file1.c:3]: (error) Possible null pointer dereference: filter\n'
                '[file1.c:4]: (error) Memory leak: columns\n'
                "[file1.c:7]: (style) The scope of the variable 'pid' can be reduced")
        .exit(0))
    self.expect_outcome(result=FAILURE,
                       state_string="cppcheck error=2 style=1 (failure)")
    return self.run_step()