File tree 2 files changed +6
-6
lines changed
src/tools/compiletest/src
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4149,8 +4149,8 @@ impl<'test> TestCx<'test> {
4149
4149
# Match paths that don't include spaces.
4150
4150
(?:\\[\pL\pN\.\-_']+)+\.\pL+
4151
4151
|
4152
- # If the path starts with a well-known root, then allow spaces.
4153
- \$(?:DIR|SRC_DIR|TEST_BUILD_DIR|BUILD_DIR|LIB_DIR)(?:\\[\pL\pN\.\-_' ]+)+
4152
+ # If the path starts with a well-known root, then allow spaces and no file extension .
4153
+ \$(?:DIR|SRC_DIR|TEST_BUILD_DIR|BUILD_DIR|LIB_DIR)(?:\\[\pL\pN\.\-_'\ ]+)+
4154
4154
)"# ,
4155
4155
)
4156
4156
. unwrap ( )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ fn normalize_platform_differences() {
8
8
"$BUILD_DIR/../parser.rs"
9
9
) ;
10
10
assert_eq ! (
11
- TestCx :: normalize_platform_differences( r"$DIR\bar.rs hello\nworld" ) ,
12
- r"$DIR/bar.rs hello\nworld"
11
+ TestCx :: normalize_platform_differences( r"$DIR\bar.rs: hello\nworld" ) ,
12
+ r"$DIR/bar.rs: hello\nworld"
13
13
) ;
14
14
assert_eq ! (
15
15
TestCx :: normalize_platform_differences( r"either bar\baz.rs or bar\baz\mod.rs" ) ,
@@ -27,8 +27,8 @@ fn normalize_platform_differences() {
27
27
) ;
28
28
assert_eq ! ( TestCx :: normalize_platform_differences( r"$DIR\foo.rs:12:11" ) , "$DIR/foo.rs:12:11" , ) ;
29
29
assert_eq ! (
30
- TestCx :: normalize_platform_differences( r"$DIR\path with spaces 'n' quotes" ) ,
31
- "$DIR/path with spaces 'n' quotes" ,
30
+ TestCx :: normalize_platform_differences( r"$DIR\path with\ spaces 'n' quotes" ) ,
31
+ "$DIR/path with/ spaces 'n' quotes" ,
32
32
) ;
33
33
assert_eq ! (
34
34
TestCx :: normalize_platform_differences( r"$DIR\file_with\no_extension" ) ,
You can’t perform that action at this time.
0 commit comments