Skip to content

Commit b106390

Browse files
committed
update test for new idioms
1 parent 8320bbe commit b106390

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

tests/testsuite/build.rs

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ fn rebuild_on_mid_build_file_modification() {
24012401
let server = TcpListener::bind("127.0.0.1:0").unwrap();
24022402
let addr = server.local_addr().unwrap();
24032403

2404-
let p = project("p")
2404+
let p = project()
24052405
.file(
24062406
"Cargo.toml",
24072407
r#"
@@ -2480,29 +2480,24 @@ fn rebuild_on_mid_build_file_modification() {
24802480
drop(server.accept().unwrap());
24812481
});
24822482

2483-
assert_that(
2484-
p.cargo("build"),
2485-
execs().stream().with_status(0)
2486-
// .with_stderr(&format!(
2487-
// "\
2488-
//[COMPILING] proc_macro_dep v0.1.0 ({url}/proc_macro_dep)
2489-
//[COMPILING] root v0.1.0 ({url}/root)
2490-
//[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
2491-
//",
2492-
// url = p.url()
2493-
// )),
2494-
);
2495-
2496-
assert_that(
2497-
p.cargo("build"),
2498-
execs().stream().with_status(0).with_stderr(&format!(
2483+
p.cargo("build")
2484+
.with_stderr(
24992485
"\
2500-
[COMPILING] root v0.1.0 ({url}/root)
2486+
[COMPILING] proc_macro_dep v0.1.0 ([..]/proc_macro_dep)
2487+
[COMPILING] root v0.1.0 ([..]/root)
25012488
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
25022489
",
2503-
url = p.url()
2504-
)),
2505-
);
2490+
)
2491+
.run();
2492+
2493+
p.cargo("build")
2494+
.with_stderr(
2495+
"\
2496+
[COMPILING] root v0.1.0 ([..]/root)
2497+
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
2498+
",
2499+
)
2500+
.run();
25062501

25072502
t.join().ok().unwrap();
25082503
}

0 commit comments

Comments
 (0)