Fix broken tests due to different profile selection.
authorEric Huss <eric@huss.org>
Sun, 8 Oct 2017 01:55:00 +0000 (18:55 -0700)
committerEric Huss <eric@huss.org>
Sun, 15 Oct 2017 01:43:37 +0000 (18:43 -0700)
tests/rustc.rs
tests/test.rs

index da6aced75983e851bc69de9650228b3140bf1864..36bd14e601acacc9138e77f9844fdd5af147d5a3 100644 (file)
@@ -217,7 +217,7 @@ fn build_with_args_to_one_of_multiple_tests() {
 [RUNNING] `rustc --crate-name foo src[/]lib.rs --crate-type lib --emit=dep-info,link \
         -C debuginfo=2 -C metadata=[..] \
         --out-dir [..]`
-[RUNNING] `rustc --crate-name bar tests[/]bar.rs --emit=dep-info,link -C debuginfo=2 \
+[RUNNING] `rustc --crate-name bar tests[/]bar.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 \
         -C debug-assertions [..]--test[..]`
 [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
 ", url = p.url())));
index 9f48164f353b09bf9281e2405fd7bb0f742e4a34..d657e034228724ebe2f101aff0f8e9f272366b3e 100644 (file)
@@ -1262,7 +1262,8 @@ fn test_run_implicit_example_target() {
                 execs().with_status(0)
                        .with_stderr(format!("\
 [COMPILING] foo v0.0.1 ({dir})
-[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]", dir = prj.url())));
+[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
+[RUNNING] target[/]debug[/]examples[/]myexm-[..][EXE]", dir = prj.url())));
 }
 
 #[test]