File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
examples_tests/rustc_basic
tests/integrations/basic-fail Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
//@run
2
+ //@revisions: a b c d e f g h i j k l m n
2
3
3
4
fn main ( ) {
4
5
std:: thread:: sleep ( std:: time:: Duration :: from_secs ( 5 ) ) ;
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ impl TestConfig {
136
136
cmd. arg ( self . status . path ( ) ) ;
137
137
if !self . status . revision ( ) . is_empty ( ) {
138
138
cmd. arg ( format ! ( "--cfg={}" , self . status. revision( ) ) ) ;
139
+ cmd. arg ( format ! ( "-Cextra-filename={}" , self . status. revision( ) ) ) ;
139
140
}
140
141
for r in self . comments ( ) {
141
142
cmd. args ( & r. compile_flags ) ;
Original file line number Diff line number Diff line change @@ -817,7 +817,7 @@ full stdout:
817
817
818
818
819
819
FAILED TEST: tests/actual_tests_bless/revisions_bad.rs (revision `bar`)
820
- command: "rustc" "--error-format=json" "--out-dir" "$TMP "tests/actual_tests_bless/revisions_bad.rs" "--cfg=bar" "--extern" "basic_fail=$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug" "--edition" "2021"
820
+ command: "rustc" "--error-format=json" "--out-dir" "$TMP "tests/actual_tests_bless/revisions_bad.rs" "--cfg=bar" "-Cextra-filename=bar" "- -extern" "basic_fail=$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug/libbasic_fail.rlib" "--extern" "basic_fail=$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug" "-L" "$DIR/tests/integrations/basic-fail/../../../target/$TMP/$TRIPLE/debug" "--edition" "2021"
821
821
822
822
error: ``main` function not found in crate `revisions_bad`` not found in diagnostics outside the testfile
823
823
--> tests/actual_tests_bless/revisions_bad.rs:4:31
You can’t perform that action at this time.
0 commit comments