Skip to content

Commit 04a4404

Browse files
authored
Rollup merge of #79116 - petrochenkov:gdbwarn, r=Mark-Simulacrum
compiletest: Fix a warning in debuginfo tests on windows-gnu The warning looked like this for me: ``` Warning: C:msys64homewerust./src/etc: No such file or directory. ``` It didn't affect actual testing because we don't currently emit gdb pretty-printer information into executables on windows-gnu.
2 parents 470f768 + ed26f6e commit 04a4404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/compiletest/src/runtest.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@ impl<'test> TestCx<'test> {
977977
script_str.push_str("set print pretty off\n");
978978

979979
// Add the pretty printer directory to GDB's source-file search path
980-
script_str.push_str(&format!("directory {}\n", rust_pp_module_abs_path));
980+
script_str
981+
.push_str(&format!("directory {}\n", rust_pp_module_abs_path.replace(r"\", r"\\")));
981982

982983
// Load the target executable
983984
script_str

0 commit comments

Comments
 (0)