Esempio n. 1
0
def make_preprocessor_should_fail(environment, filename):
    setup_preprocess_environment(environment, filename)

    test = Test(environment, filename)
    preprocess = test.add_step("preprocess", step_preprocess)
    preprocess.add_check(create_check_errors_reference(environment))
    return test
Esempio n. 2
0
def make_preprocessor_should_fail(environment, filename):
    setup_preprocess_environment(environment, filename)

    test = Test(environment, filename)
    preprocess = test.add_step("preprocess", step_preprocess)
    preprocess.add_check(create_check_errors_reference(environment))
    return test
Esempio n. 3
0
def make_c_should_fail(environment, filename, cflags=""):
    setup_c_environment(environment, filename)
    environment.cflags += cflags
    parse_embedded_commands_no_check(environment)

    test = Test(environment, filename)
    compile = test.add_step("compile", step_compile_c_syntax_only)
    compile.add_check(create_check_errors_reference(environment))
    test.steps.append(compile)
    return test