Skip to content

Commit 6e24725

Browse files
committed
Fix remap-std test as CHECK-NOT doesn't seem to work with regex
1 parent 0afce07 commit 6e24725

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/test/codegen/remap_path_prefix/issue-73167-remap-std.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
// ignore-windows
22

3-
// compile-flags: -g -C no-prepopulate-passes --remap-path-prefix={{cwd}}/library/std=/the/std
3+
// compile-flags: -g -C no-prepopulate-passes --remap-path-prefix=/=/the/root/
44

55
// Here we check that imported code from std has their path remapped
6-
// Ideally we want to do
7-
// COM: CHECK-NOT: !DIFile(filename: "{{cwd}}/library/std/src/thread/mod.rs"
8-
// But {{cwd}} will not be expanded here, so we have to check on the bit afterwards
9-
// Note that we can't use a positive check on `/the/std` either, because the rempap flag will
10-
// have no effect when `remap-debuginfo` is set to true in `config.toml`, causing the test to fail
116

12-
// CHECK-NOT: !DIFile(filename: "{{.*}}/library/std"
7+
// CHECK: !DIFile(filename: "{{/the/root/.*/library/std/src/panic.rs}}"
138
fn main() {
149
std::thread::spawn(|| {
1510
println!("hello");

0 commit comments

Comments
 (0)