[lldb/test] Fix TestHistoryRecall failure (NFC)
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 23 Jul 2020 11:21:26 +0000 (13:21 +0200)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 23 Jul 2020 11:27:12 +0000 (13:27 +0200)
This patch fixes a test failure in TestHistoryRecall caused by the move
of the `history` subcommand to the `session` command.

This change was introduced by commit 85fbb08fa2ac5195dc7a2f13eea7de1471da2a21.

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/test/API/functionalities/history/TestHistoryRecall.py

index 557b4a4..18ab2ca 100644 (file)
@@ -25,12 +25,12 @@ class TestHistoryRecall(TestBase):
     def sample_test(self):
         interp = self.dbg.GetCommandInterpreter()
         result = lldb.SBCommandReturnObject()
-        interp.HandleCommand("command history", result, True)
+        interp.HandleCommand("session history", result, True)
         interp.HandleCommand("platform list", result, True)
 
         interp.HandleCommand("!0", result, False)
         self.assertTrue(result.Succeeded(), "!0 command did not work: %s"%(result.GetError()))
-        self.assertTrue("command history" in result.GetOutput(), "!0 didn't rerun command history")
+        self.assertTrue("session history" in result.GetOutput(), "!0 didn't rerun session history")
 
         interp.HandleCommand("!-1", result, False)
         self.assertTrue(result.Succeeded(), "!-1 command did not work: %s"%(result.GetError()))