Fix run-pass tests to have 'pub fn main'

This is required by the check-fast target because each test is slurped up into a
submodule.
This commit is contained in:
Alex Crichton 2013-09-25 00:43:37 -07:00
parent 10a583ce1a
commit 30862a64c2
137 changed files with 145 additions and 143 deletions

View file

@ -29,6 +29,8 @@ for t in os.listdir(run_pass):
if not ("xfail-test" in s or
"xfail-fast" in s or
"xfail-win32" in s):
if not "pub fn main" in s and "fn main" in s:
print("Warning: no public entry point in " + t)
stage2_tests.append(t)
f.close()