File tree 3 files changed +44
-6
lines changed 3 files changed +44
-6
lines changed Original file line number Diff line number Diff line change @@ -1041,7 +1041,14 @@ fn cargo_compile_with_filename() {
1041
1041
1042
1042
p. cargo ( "build --bin bin.rs" )
1043
1043
. with_status ( 101 )
1044
- . with_stderr ( "[ERROR] no bin target named `bin.rs`" )
1044
+ . with_stderr (
1045
+ "\
1046
+ [ERROR] no bin target named `bin.rs`.
1047
+ Available bin targets:
1048
+ a
1049
+
1050
+ " ,
1051
+ )
1045
1052
. run ( ) ;
1046
1053
1047
1054
p. cargo ( "build --bin a.rs" )
@@ -1056,7 +1063,14 @@ fn cargo_compile_with_filename() {
1056
1063
1057
1064
p. cargo ( "build --example example.rs" )
1058
1065
. with_status ( 101 )
1059
- . with_stderr ( "[ERROR] no example target named `example.rs`" )
1066
+ . with_stderr (
1067
+ "\
1068
+ [ERROR] no example target named `example.rs`.
1069
+ Available example targets:
1070
+ a
1071
+
1072
+ " ,
1073
+ )
1060
1074
. run ( ) ;
1061
1075
1062
1076
p. cargo ( "build --example a.rs" )
Original file line number Diff line number Diff line change @@ -600,7 +600,14 @@ fn run_with_filename() {
600
600
601
601
p. cargo ( "run --bin bin.rs" )
602
602
. with_status ( 101 )
603
- . with_stderr ( "[ERROR] no bin target named `bin.rs`" )
603
+ . with_stderr (
604
+ "\
605
+ [ERROR] no bin target named `bin.rs`.
606
+ Available bin targets:
607
+ a
608
+
609
+ " ,
610
+ )
604
611
. run ( ) ;
605
612
606
613
p. cargo ( "run --bin a.rs" )
@@ -615,7 +622,14 @@ fn run_with_filename() {
615
622
616
623
p. cargo ( "run --example example.rs" )
617
624
. with_status ( 101 )
618
- . with_stderr ( "[ERROR] no example target named `example.rs`" )
625
+ . with_stderr (
626
+ "\
627
+ [ERROR] no example target named `example.rs`.
628
+ Available example targets:
629
+ a
630
+
631
+ " ,
632
+ )
619
633
. run ( ) ;
620
634
621
635
p. cargo ( "run --example a.rs" )
Original file line number Diff line number Diff line change @@ -2122,11 +2122,21 @@ fn bad_example() {
2122
2122
2123
2123
p. cargo ( "run --example foo" )
2124
2124
. with_status ( 101 )
2125
- . with_stderr ( "[ERROR] no example target named `foo`" )
2125
+ . with_stderr (
2126
+ "\
2127
+ [ERROR] no example target named `foo`.
2128
+ No example targets available.
2129
+
2130
+ " )
2126
2131
. run ( ) ;
2127
2132
p. cargo ( "run --bin foo" )
2128
2133
. with_status ( 101 )
2129
- . with_stderr ( "[ERROR] no bin target named `foo`" )
2134
+ . with_stderr (
2135
+ "\
2136
+ [ERROR] no bin target named `foo`.
2137
+ No bin targets available.
2138
+
2139
+ " )
2130
2140
. run ( ) ;
2131
2141
}
2132
2142
You can’t perform that action at this time.
0 commit comments