[Lldb-commits] [lldb] 4df7d85 - [lldb][NFC] Use expect_expr in TestDollarInVariable
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 25 10:08:24 PDT 2020
Author: Raphael Isemann
Date: 2020-06-25T19:07:55+02:00
New Revision: 4df7d852afc04844184f0a02d3a3ca4449bbbc5f
URL: https://github.com/llvm/llvm-project/commit/4df7d852afc04844184f0a02d3a3ca4449bbbc5f
DIFF: https://github.com/llvm/llvm-project/commit/4df7d852afc04844184f0a02d3a3ca4449bbbc5f.diff
LOG: [lldb][NFC] Use expect_expr in TestDollarInVariable
Added:
Modified:
lldb/test/API/commands/expression/dollar-in-variable/main.c
Removed:
################################################################################
diff --git a/lldb/test/API/commands/expression/dollar-in-variable/main.c b/lldb/test/API/commands/expression/dollar-in-variable/main.c
index 97c939b68edf..7d2a048720bd 100644
--- a/lldb/test/API/commands/expression/dollar-in-variable/main.c
+++ b/lldb/test/API/commands/expression/dollar-in-variable/main.c
@@ -13,10 +13,10 @@ int main() {
int $R0 = 13;
int $0 = 14;
- //%self.expect("expr $__lldb_expr_result", substrs=['(int) $0 = 11'])
- //%self.expect("expr $foo", substrs=['(int)', ' = 12'])
- //%self.expect("expr $R0", substrs=['(int)', ' = 13'])
+ //%self.expect_expr("$__lldb_expr_result", result_type="int", result_value="11")
+ //%self.expect_expr("$foo", result_type="int", result_value="12")
+ //%self.expect_expr("$R0", result_type="int", result_value="13")
//%self.expect("expr int $foo = 123", error=True, substrs=["declaration conflicts"])
- //%self.expect("expr $0", substrs=['(int)', ' = 11'])
+ //%self.expect_expr("$0", result_type="int", result_value="11")
return 0;
}
More information about the lldb-commits
mailing list