diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-10-03 19:16:27 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-10-04 15:07:49 -0700 |
| commit | edc317b8212fe1c29b5e7e2e4e260b9a4d72b447 (patch) | |
| tree | 3bdc8d5103affca408a0ff2bc2325f4869ecb375 /src/etc/combine-tests.py | |
| parent | e3f458e6390d66b9634e7dce4aa7e91c091aebc6 (diff) | |
| download | rust-edc317b8212fe1c29b5e7e2e4e260b9a4d72b447.tar.gz rust-edc317b8212fe1c29b5e7e2e4e260b9a4d72b447.zip | |
Remove arg vectors from main functions. Stop supporting them.
Diffstat (limited to 'src/etc/combine-tests.py')
| -rwxr-xr-x | src/etc/combine-tests.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/etc/combine-tests.py b/src/etc/combine-tests.py index 7016713f2fe..1e3c0bcfbfc 100755 --- a/src/etc/combine-tests.py +++ b/src/etc/combine-tests.py @@ -19,7 +19,6 @@ if not src_dir: run_pass = os.path.join(src_dir, "src", "test", "run-pass") run_pass = os.path.abspath(run_pass) stage2_tests = [] -take_args = {} for t in os.listdir(run_pass): if t.endswith(".rs") and not ( @@ -30,8 +29,6 @@ for t in os.listdir(run_pass): "xfail-fast" in s or "xfail-win32" in s): stage2_tests.append(t) - if "fn main(args:" in s or "fn main(++args:" in s: - take_args[t] = True f.close() stage2_tests.sort() @@ -64,9 +61,6 @@ for t in stage2_tests: p = os.path.join("test", "run-pass", t) p = p.replace("\\", "\\\\") d.write(" out.write_str(~\"run-pass [stage2]: %s\\n\");\n" % p) - if t in take_args: - d.write(" t_%d::main(~[~\"arg0\"]);\n" % i) - else: - d.write(" t_%d::main();\n" % i) + d.write(" t_%d::main();\n" % i) i += 1 d.write("}\n") |
