compiletest: force GDB to print values in the Rust format.

This commit is contained in:
Eduard-Mihai Burtescu 2017-05-10 14:37:29 +03:00
parent 58b33ad70c
commit d23a65077a

View file

@ -647,6 +647,11 @@ actual:\n\
exe_file.to_str().unwrap()
.replace(r"\", r"\\")));
// Force GDB to print values in the Rust format.
if self.config.gdb_native_rust {
script_str.push_str("set language rust\n");
}
// Add line breakpoints
for line in &breakpoint_lines {
script_str.push_str(&format!("break '{}':{}\n",