Skip to content

Commit

Permalink
Rollup merge of #79116 - petrochenkov:gdbwarn, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dylan-DPC committed Nov 19, 2020
2 parents 470f768 + ed26f6e commit 04a4404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,8 @@ impl<'test> TestCx<'test> {
script_str.push_str("set print pretty off\n");

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

// Load the target executable
script_str
Expand Down

0 comments on commit 04a4404

Please sign in to comment.