rustc: Fix tests
This commit is contained in:
parent
e36ea8e993
commit
cb8eabab3d
1 changed files with 4 additions and 4 deletions
|
|
@ -613,8 +613,8 @@ mod test {
|
|||
alt getopts::getopts(["--test"], opts()) {
|
||||
ok(m) { m }
|
||||
};
|
||||
let sessopts = build_session_options(match);
|
||||
let sess = build_session(sessopts, "");
|
||||
let sessopts = build_session_options(match, diagnostic::emit);
|
||||
let sess = build_session(sessopts, "", diagnostic::emit);
|
||||
let cfg = build_configuration(sess, "whatever", "whatever");
|
||||
assert (attr::contains_name(cfg, "test"));
|
||||
}
|
||||
|
|
@ -627,8 +627,8 @@ mod test {
|
|||
alt getopts::getopts(["--test", "--cfg=test"], opts()) {
|
||||
ok(m) { m }
|
||||
};
|
||||
let sessopts = build_session_options(match);
|
||||
let sess = build_session(sessopts, "");
|
||||
let sessopts = build_session_options(match, diagnostic::emit);
|
||||
let sess = build_session(sessopts, "", diagnostic::emit);
|
||||
let cfg = build_configuration(sess, "whatever", "whatever");
|
||||
let test_items = attr::find_meta_items_by_name(cfg, "test");
|
||||
assert (vec::len(test_items) == 1u);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue