1
- // This test makes sure that changes to files referenced via //[debugger_visualizer]
2
- // are picked up when compiling incrementally.
3
-
4
- // We have to copy the source to $(TMPDIR) because Github CI mounts the source
5
- // directory as readonly. We need to apply modifications to some of the source
6
- // file.
1
+ // This test ensures that changes to files referenced via //[debugger_visualizer]
2
+ // (in this case, foo.py and foo.natvis) are picked up when compiling incrementally.
3
+ // See https://github.com/rust-lang/rust/pull/111641
7
4
8
5
use run_make_support:: {
9
6
fs_wrapper, invalid_utf8_contains_str, invalid_utf8_not_contains_str, rustc,
@@ -14,7 +11,7 @@ fn main() {
14
11
fs_wrapper:: create_file ( "foo.py" ) ;
15
12
fs_wrapper:: write ( "foo.py" , "GDB script v1" ) ;
16
13
fs_wrapper:: create_file ( "foo.natvis" ) ;
17
- fs_wrapper:: write ( "foo.py " , "Natvis v1" ) ;
14
+ fs_wrapper:: write ( "foo.natvis " , "Natvis v1" ) ;
18
15
rustc ( )
19
16
. input ( "foo.rs" )
20
17
. crate_type ( "rlib" )
@@ -45,7 +42,7 @@ fn main() {
45
42
// Now change the Natvis version and check that the change has been picked up
46
43
fs_wrapper:: remove_file ( "foo.natvis" ) ;
47
44
fs_wrapper:: create_file ( "foo.natvis" ) ;
48
- fs_wrapper:: write ( "foo.py " , "Natvis v2" ) ;
45
+ fs_wrapper:: write ( "foo.natvis " , "Natvis v2" ) ;
49
46
rustc ( )
50
47
. input ( "foo.rs" )
51
48
. crate_type ( "rlib" )
0 commit comments