From ed26f6ed7004f0ef3fa4e381f8950fd67ef177c1 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Tue, 17 Nov 2020 01:57:27 +0300 Subject: [PATCH] compiletest: Fix a warning in debuginfo tests on windows-gnu --- src/tools/compiletest/src/runtest.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index d46f905e6cc52..8fbec4bca6b8c 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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