Skip to content

Commit

Permalink
compiletest: Fix a warning in debuginfo tests on windows-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Nov 16, 2020
1 parent f5230fb commit ed26f6e
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 ed26f6e

Please sign in to comment.