[lldb] Switch expect to runCmd in TestRecursiveTypes (NFC)
authorDave Lee <davelee.com@gmail.com>
Tue, 10 Nov 2020 21:59:04 +0000 (13:59 -0800)
committerDave Lee <davelee.com@gmail.com>
Thu, 12 Nov 2020 00:17:38 +0000 (16:17 -0800)
Following discussion in D91193, a change made in D88792 was not quite right.
This restores the message argument, and switches from `expect` to `runCmd`.

Differential Revision: https://reviews.llvm.org/D91206

lldb/test/API/types/TestRecursiveTypes.py

index 8e84a05..8deb193 100644 (file)
@@ -50,5 +50,5 @@ class RecursiveTypesTestCase(TestBase):
 
         self.runCmd("run", RUN_SUCCEEDED)
 
-        self.expect("print tpi")
-        self.expect("print *tpi")
+        self.runCmd("print tpi")
+        self.runCmd("print *tpi")