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:
parent
10a583ce1a
commit
30862a64c2
137 changed files with 145 additions and 143 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue