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
74
85use run_make_support:: {
96 fs_wrapper, invalid_utf8_contains_str, invalid_utf8_not_contains_str, rustc,
@@ -14,7 +11,7 @@ fn main() {
1411 fs_wrapper:: create_file ( "foo.py" ) ;
1512 fs_wrapper:: write ( "foo.py" , "GDB script v1" ) ;
1613 fs_wrapper:: create_file ( "foo.natvis" ) ;
17- fs_wrapper:: write ( "foo.py " , "Natvis v1" ) ;
14+ fs_wrapper:: write ( "foo.natvis " , "Natvis v1" ) ;
1815 rustc ( )
1916 . input ( "foo.rs" )
2017 . crate_type ( "rlib" )
@@ -45,7 +42,7 @@ fn main() {
4542 // Now change the Natvis version and check that the change has been picked up
4643 fs_wrapper:: remove_file ( "foo.natvis" ) ;
4744 fs_wrapper:: create_file ( "foo.natvis" ) ;
48- fs_wrapper:: write ( "foo.py " , "Natvis v2" ) ;
45+ fs_wrapper:: write ( "foo.natvis " , "Natvis v2" ) ;
4946 rustc ( )
5047 . input ( "foo.rs" )
5148 . crate_type ( "rlib" )
0 commit comments