Skip to content

Commit ed26f6e

Browse files
committed
compiletest: Fix a warning in debuginfo tests on windows-gnu
1 parent f5230fb commit ed26f6e

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)