(n, expect, noexec=False)
| 82 | t.write("xxx.bin", "foo") |
| 83 | |
| 84 | def test1(n, expect, noexec=False): |
| 85 | params = ["-sXXX=%d" % n] |
| 86 | if noexec: |
| 87 | params.append("-n") |
| 88 | params.append("-sNOEXEC=NOEXEC") |
| 89 | t.run_build_system(params) |
| 90 | t.expect_output_lines("*NOEXEC*", noexec) |
| 91 | obj_file = "xxx_res.obj" |
| 92 | t.expect_output_lines("compile.resource.dummy *%s" % obj_file, expect) |
| 93 | if expect and not noexec: |
| 94 | expect("bin/%s/debug/%s" % (toolsetName, obj_file)) |
| 95 | t.expect_nothing_more() |
| 96 | |
| 97 | def test(n, expect): |
| 98 | test1(n, expect, noexec=True) |
no test coverage detected