File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed
tests/run-make/silly-file-names Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,6 @@ pub enum FileName {
305305
306306impl From < PathBuf > for FileName {
307307 fn from ( p : PathBuf ) -> Self {
308- assert ! ( !p. to_string_lossy( ) . ends_with( '>' ) ) ;
309308 FileName :: Real ( RealFileName :: LocalPath ( p) )
310309 }
311310}
Original file line number Diff line number Diff line change 1+ # ignore-cross-compile we need to execute the binary
2+ # ignore-windows we create files with < and > in their names
3+
4+ include ../tools.mk
5+
6+ ifdef RUSTC_BLESS_TEST
7+ RUSTC_TEST_OP = cp
8+ else
9+ RUSTC_TEST_OP = $(DIFF )
10+ endif
11+
12+ all :
13+ echo ' "comes from a file with a name that begins with <"' > " $( TMPDIR) /<leading-lt"
14+ echo ' "comes from a file with a name that ends with >"' > " $( TMPDIR) /trailing-gt>"
15+ cp silly-file-names.rs " $( TMPDIR) /silly-file-names.rs"
16+ $(RUSTC ) " $( TMPDIR) /silly-file-names.rs" -o " $( TMPDIR) /silly-file-names"
17+ " $( TMPDIR) /silly-file-names" > " $( TMPDIR) /silly-file-names.run.stdout"
18+ $(RUSTC_TEST_OP ) " $( TMPDIR) /silly-file-names.run.stdout" silly-file-names.run.stdout
Original file line number Diff line number Diff line change 1+ fn main ( ) {
2+ println ! ( include!( "<leading-lt" ) ) ;
3+ println ! ( include!( "trailing-gt>" ) ) ;
4+ }
Original file line number Diff line number Diff line change 1+ comes from a file with a name that begins with <
2+ comes from a file with a name that ends with >
You can’t perform that action at this time.
0 commit comments