compiletest: Fix a warning in debuginfo tests on windows-gnu

This commit is contained in:
Vadim Petrochenkov 2020-11-17 01:57:27 +03:00
parent f5230fbf76
commit ed26f6ed70

View File

@ -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