Skip to content

Commit

Permalink
Suppress warnings in run-pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ktt3ja committed Dec 14, 2013
1 parent 71ce559 commit a67b886
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions src/etc/combine-tests.py
Expand Up @@ -41,11 +41,15 @@ def scrub(b):

c = open("tmp/run_pass_stage2.rc", "w")
i = 0
c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
c.write("#[pkgid=\"run_pass_stage2#0.1\"];\n")
c.write("#[link(name=\"run_pass_stage2\", vers=\"0.1\")];\n")
c.write("#[feature(globs, macro_rules, struct_variant, managed_boxes)];\n")
c.write("#[allow(attribute_usage)];\n")
c.write(
"""
// AUTO-GENERATED FILE: DO NOT EDIT
#[pkgid=\"run_pass_stage2#0.1\"];
#[link(name=\"run_pass_stage2\", vers=\"0.1\")];
#[feature(globs, macro_rules, struct_variant, managed_boxes)];
#[allow(warnings)];
"""
)
for t in stage2_tests:
p = os.path.join(run_pass, t)
p = p.replace("\\", "\\\\")
Expand All @@ -56,15 +60,19 @@ def scrub(b):


d = open("tmp/run_pass_stage2_driver.rs", "w")
d.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
d.write("#[feature(globs, managed_boxes)];\n")
d.write("extern mod extra;\n")
d.write("extern mod run_pass_stage2;\n")
d.write("use run_pass_stage2::*;\n")
d.write("use std::io;\n")
d.write("use std::io::Writer;\n")
d.write("fn main() {\n")
d.write(" let mut out = io::stdout();\n")
d.write(
"""
// AUTO-GENERATED FILE: DO NOT EDIT
#[feature(globs, managed_boxes)];
extern mod extra;
extern mod run_pass_stage2;
use run_pass_stage2::*;
use std::io;
use std::io::Writer;
fn main() {
let mut out = io::stdout();
"""
)
i = 0
for t in stage2_tests:
p = os.path.join("test", "run-pass", t)
Expand Down

9 comments on commit a67b886

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at ktt3ja@a67b886

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging ktt3ja/rust/issue-10865 = a67b886 into auto

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ktt3ja/rust/issue-10865 = a67b886 merged ok, testing candidate = 27eada6e

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at ktt3ja@a67b886

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging ktt3ja/rust/issue-10865 = a67b886 into auto

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ktt3ja/rust/issue-10865 = a67b886 merged ok, testing candidate = 3d3a663

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on a67b886 Dec 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 3d3a663

Please sign in to comment.