diff --git a/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py b/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py index 2c32901452fb..556fa8a6d4be 100644 --- a/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py +++ b/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py @@ -17,7 +17,7 @@ class TestCase(TestBase): substrs=["`po` was unsuccessful, running `p` instead\n", "(Bad *) 0x"], ) self.filecheck( - f"platform shell cat {log}", __file__, f"-check-prefix=CHECK-EXPR" + f"platform shell -h -- cat {log}", __file__, f"-check-prefix=CHECK-EXPR" ) # CHECK-EXPR: Object description fallback due to error: could not evaluate print object function: expression interrupted @@ -26,6 +26,8 @@ class TestCase(TestBase): substrs=["`po` was unsuccessful, running `p` instead\n", "_lookHere = NO"], ) self.filecheck( - f"platform shell cat {log}", __file__, f"-check-prefix=CHECK-DWIM-PRINT" + f"platform shell -h -- cat {log}", + __file__, + f"-check-prefix=CHECK-DWIM-PRINT", ) # CHECK-DWIM-PRINT: Object description fallback due to error: could not evaluate print object function: expression interrupted diff --git a/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py b/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py index b6dc7637b45e..d0162afd4595 100644 --- a/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py +++ b/lldb/test/API/lang/objc/struct-description/TestObjCStructDescription.py @@ -19,7 +19,9 @@ class TestCase(TestBase): "(Pair) pair = (f = 2, e = 3)", ], ) - self.filecheck(f"platform shell cat {log}", __file__, f"-check-prefix=CHECK-VO") + self.filecheck( + f"platform shel -h -- cat {log}", __file__, f"-check-prefix=CHECK-VO" + ) # CHECK-VO: Object description fallback due to error: not a pointer type self.expect( @@ -30,6 +32,6 @@ class TestCase(TestBase): ], ) self.filecheck( - f"platform shell cat {log}", __file__, f"-check-prefix=CHECK-EXPR" + f"platform shel -h -- cat {log}", __file__, f"-check-prefix=CHECK-EXPR" ) # CHECK-EXPR: Object description fallback due to error: not a pointer type