Fixing the watchpoint test case to reflect changes in error reporting
authorEnrico Granata <egranata@apple.com>
Fri, 22 Feb 2013 00:44:16 +0000 (00:44 +0000)
committerEnrico Granata <egranata@apple.com>
Fri, 22 Feb 2013 00:44:16 +0000 (00:44 +0000)
llvm-svn: 175845

lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py

index d30a25f..7231c51 100644 (file)
@@ -59,16 +59,12 @@ class WatchpointSetErrorTestCase(TestBase):
         # 'watchpoint set expression' with '-w' or '-x' specified now needs
         # an option terminator and a raw expression after that.
         self.expect("watchpoint set expression -w write --", error=True,
-            startstr = 'error: required argument missing; specify an expression to evaulate into the addres to watch for')
+            startstr = 'error: ')
 
         # It's an error if the expression did not evaluate to an address.
         self.expect("watchpoint set expression MyAggregateDataType", error=True,
             startstr = 'error: expression did not evaluate to an address')
 
-        # Check for missing option terminator '--'.
-        self.expect("watchpoint set expression -w write -x 1 g_char_ptr", error=True,
-            startstr = 'error: did you forget to enter the option terminator string "--"?')
-
         # Wrong size parameter is an error.
         self.expect("watchpoint set variable -x -128", error=True,
             substrs = ['invalid enumeration value'])