Author: Dave Lee Date: 2026-01-23T09:39:48-08:00 New Revision: 12cea04988d67f940bec567b04fe76e9c9da3d1b
URL: https://github.com/llvm/llvm-project/commit/12cea04988d67f940bec567b04fe76e9c9da3d1b DIFF: https://github.com/llvm/llvm-project/commit/12cea04988d67f940bec567b04fe76e9c9da3d1b.diff LOG: [lldb] Improve filecheck() by replacing assertTrue with assertEqual (#177212) Added: Modified: lldb/packages/Python/lldbsuite/test/lldbtest.py Removed: ################################################################################ diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 55b527e3a9ce6..6bb4516948da5 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2347,7 +2347,7 @@ def filecheck( msg="FileCheck'ing result of `{0}`".format(command), ) - self.assertTrue((not expect_cmd_failure) == self.res.Succeeded()) + self.assertNotEqual(expect_cmd_failure, self.res.Succeeded()) # Get the error text if there was an error, and the regular text if not. output = self.res.GetOutput() if self.res.Succeeded() else self.res.GetError() @@ -2395,7 +2395,7 @@ def filecheck( with recording(self, trace) as sbuf: print(filecheck_trace, file=sbuf) - self.assertTrue(cmd_status == 0) + self.assertEqual(cmd_status, 0) def expect( self, _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
