File tree 1 file changed +19
-3
lines changed
1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -592,17 +592,33 @@ fn no_cross_doctests() {
592
592
593
593
println ! ( "b" ) ;
594
594
let target = rustc_host ( ) ;
595
- p. cargo ( "test --target" )
595
+ p. cargo ( "test -v - -target" )
596
596
. arg ( & target)
597
597
. with_stderr ( & format ! (
598
598
"\
599
599
[COMPILING] foo v0.0.1 ([CWD])
600
+ [RUNNING] `rustc --crate-name foo [..]
601
+ [RUNNING] `rustc --crate-name foo [..]--test[..]
600
602
[FINISHED] test [unoptimized + debuginfo] target(s) in [..]
601
- [RUNNING] [..] ( target/{triple }/debug/deps/foo-[..][EXE])
603
+ [RUNNING] `[CWD]/ target/{target }/debug/deps/foo-[..][EXE]`
602
604
[DOCTEST] foo
605
+ [RUNNING] `rustdoc [..]--target {target}[..]`
603
606
" ,
604
- triple = target
605
607
) )
608
+ . with_stdout (
609
+ "
610
+ running 0 tests
611
+
612
+ test result: ok. 0 passed[..]
613
+
614
+
615
+ running 1 test
616
+ test src/lib.rs - (line 2) ... ok
617
+
618
+ test result: ok. 1 passed[..]
619
+
620
+ " ,
621
+ )
606
622
. run ( ) ;
607
623
608
624
println ! ( "c" ) ;
You can’t perform that action at this time.
0 commit comments