예제 #1
0
    def setUp(self):
        cfg = MockFixupCfg()

        testcase = Mock()
        testcase.fuzzedfile = Mock()
        testcase.fuzzedfile.path = "foo"
        testcase.fuzzedfile.dirname = 'foodir'
        self.vg = Valgrind(cfg, testcase)
예제 #2
0
    def setUp(self):
        cfg = Mock()
        cfg.valgrindtimeout = 1
        cfg.get_command_list = lambda x: ['x', 'y', 'z']

        crash = Mock()
        crash.fuzzedfile = Mock()
        crash.fuzzedfile.path = "foo"
        crash.fuzzedfile.dirname = 'foodir'
        crash.killprocname = 'bar'
        self.vg = Valgrind(cfg, crash)