def run_and_check_exit_code(args=None, code=<NUM_LIT:0>):
try:<EOL><INDENT>TT.main(["<STR_LIT>"] + ([] if args is None else args))<EOL><DEDENT>except SystemExit as exc:<EOL><INDENT>return exc.code == code<EOL><DEDENT>return True<EOL>
Run main() and check its exit code.