Author: Adrian Prantl
Date: 2021-04-27T13:24:24-07:00
New Revision: 711a473cd9e3c8e63ad3460d49fdab1545634dd2

URL: 
https://github.com/llvm/llvm-project/commit/711a473cd9e3c8e63ad3460d49fdab1545634dd2
DIFF: 
https://github.com/llvm/llvm-project/commit/711a473cd9e3c8e63ad3460d49fdab1545634dd2.diff

LOG: Update testcase for D101333.

Added: 
    

Modified: 
    lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py

Removed: 
    


################################################################################
diff  --git 
a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py 
b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
index 3433854142935..c7b75966e1a04 100644
--- a/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
+++ b/lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
@@ -75,11 +75,11 @@ def test_source_and_caret_printing(self):
         # In the future our declarations should have valid source locations.
         value = frame.EvaluateExpression("struct FooBar { double x };", 
top_level_opts)
         self.assertFalse(value.GetError().Success())
-        self.assertEqual("error: <user expression 6>:1:8: redefinition of 
'FooBar'\nstruct FooBar { double x };\n       ^\n", 
value.GetError().GetCString())
+        self.assertIn("error: <user expression 6>:1:8: redefinition of 
'FooBar'\nstruct FooBar { double x };\n       ^\n", 
value.GetError().GetCString())
 
         value = frame.EvaluateExpression("foo(1, 2)")
         self.assertFalse(value.GetError().Success())
-        self.assertEqual("error: <user expression 7>:1:1: no matching function 
for call to 'foo'\nfoo(1, 2)\n^~~\nnote: candidate function not viable: 
requires single argument 'x', but 2 arguments were provided\n\n", 
value.GetError().GetCString())
+        self.assertIn("error: <user expression 7>:1:1: no matching function 
for call to 'foo'\nfoo(1, 2)\n^~~\nnote: candidate function not viable: 
requires single argument 'x', but 2 arguments were provided\n\n", 
value.GetError().GetCString())
 
         # Redefine something that we defined in a user-expression. We should 
use the previous expression file name
         # for the original decl.


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to