Lines Matching refs:code
377 def create_test(self, name=None, code=None):
382 if code is None:
383 code = textwrap.dedent("""
400 fp.write(code)
534 msg = ("Command %s failed with exit code %s\n"
637 code = 'from test import autotest'
638 args = [*self.python_args, '-c', code,
706 code = textwrap.dedent("""
714 test_failing = self.create_test('failing', code=code)
724 code = textwrap.dedent("""
732 tests[resource] = self.create_test(resource, code)
751 code = textwrap.dedent("""
755 test = self.create_test('random', code)
821 code = TEST_INTERRUPTED
822 test = self.create_test('sigint', code=code)
839 code = TEST_INTERRUPTED
840 test = self.create_test("sigint", code=code)
872 code = textwrap.dedent("""
887 test = self.create_test('forever', code=code)
891 def check_leak(self, code, what):
892 test = self.create_test('huntrleaks', code=code)
914 code = textwrap.dedent("""
923 self.check_leak(code, 'references')
928 code = textwrap.dedent("""
937 self.check_leak(code, 'file descriptors')
948 code = textwrap.dedent("""
957 testname = self.create_test(code=code)
974 # Any code which causes a crash
975 code = 'import faulthandler; faulthandler._sigsegv()'
976 crash_test = self.create_test(name="crash", code=code)
988 code = textwrap.dedent("""
1003 testname = self.create_test(code=code)
1024 code = textwrap.dedent("""
1039 testname = self.create_test(code=code)
1065 code = textwrap.dedent("""
1072 testname = self.create_test(code=code)
1085 code = textwrap.dedent("""
1096 testname = self.create_test(code=code)
1104 code = textwrap.dedent("""
1117 testname = self.create_test(code=code)
1125 code = textwrap.dedent("""
1136 testname = self.create_test(code=code)
1145 code = textwrap.dedent("""
1156 testname = self.create_test(code=code)
1165 code = textwrap.dedent("""
1175 testname = self.create_test(code=code)
1184 code = textwrap.dedent("""
1194 testname = self.create_test(code=code)
1203 code = textwrap.dedent("""
1213 testname = self.create_test(code=code)
1222 code = textwrap.dedent("""
1232 testname = self.create_test(code=code)
1241 code = textwrap.dedent("""
1251 testname = self.create_test(code=code)
1260 code = textwrap.dedent("""
1270 testname = self.create_test(code=code)
1278 code = textwrap.dedent("""
1285 testname = self.create_test(code=code)
1291 code = textwrap.dedent("""
1298 testname = self.create_test(code=code)
1304 code = textwrap.dedent("""
1311 testname = self.create_test(code=code)
1312 testname2 = self.create_test(code=code)
1319 code = textwrap.dedent("""
1326 testname = self.create_test(code=code)
1334 testname2 = self.create_test(code=other_code)
1343 code = textwrap.dedent(r"""
1360 testname = self.create_test(code=code)
1368 code = textwrap.dedent(r"""
1386 testname = self.create_test(code=code)
1397 code = textwrap.dedent(r"""
1418 testname = self.create_test(code=code)
1430 code = textwrap.dedent(r"""
1449 testname = self.create_test(code=code)
1461 code = textwrap.dedent(r"""
1479 testname = self.create_test(code=code)