From 4df7d852afc04844184f0a02d3a3ca4449bbbc5f Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 25 Jun 2020 17:51:43 +0200 Subject: [PATCH] [lldb][NFC] Use expect_expr in TestDollarInVariable --- lldb/test/API/commands/expression/dollar-in-variable/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 97c939b..7d2a048 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; } -- 2.7.4