Remove LLDB persistent results in compiletest.

This commit is contained in:
Markus Reiter 2024-03-10 14:55:58 +01:00
parent 36a8daeb44
commit 75fba9d574
No known key found for this signature in database
GPG key ID: 245293B51702655B
90 changed files with 824 additions and 835 deletions

View file

@ -1477,15 +1477,6 @@ impl<'test> TestCx<'test> {
let rust_pp_module_rel_path = Path::new("./src/etc");
let rust_pp_module_abs_path = rust_src_root.join(rust_pp_module_rel_path);
// In newer versions of lldb, persistent results (the `$N =` part at the start of
// expressions you have evaluated that let you re-use the result) aren't printed, but lots
// of rustc's debuginfo tests rely on these, so re-enable this.
// See <https://reviews.llvm.org/rG385496385476fc9735da5fa4acabc34654e8b30d>.
script_str.push_str("command unalias print\n");
script_str.push_str("command alias print expr --\n");
script_str.push_str("command unalias p\n");
script_str.push_str("command alias p expr --\n");
script_str.push_str(&format!(
"command script import {}/lldb_lookup.py\n",
rust_pp_module_abs_path.to_str().unwrap()