Fix minor bugs in TestExprs and TestAliases to fix buildbot breakage
authorDaniel Malea <daniel.malea@intel.com>
Thu, 5 Sep 2013 21:24:14 +0000 (21:24 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Thu, 5 Sep 2013 21:24:14 +0000 (21:24 +0000)
- 'run' alias no longer includes the '--' for positional arguments... does not seem like a real bug.
- 2.234f is not a great number for the float tests (due to precision/printing issues) so use 0.5f instead

llvm-svn: 190100

lldb/test/expression_command/test/TestExprs.py
lldb/test/functionalities/alias/TestAliases.py

index 422e05e..71f62fb 100644 (file)
@@ -51,9 +51,9 @@ class BasicExprCommandsTestCase(TestBase):
             patterns = ["\(unsigned long long\) \$.* = 2"])
         # (unsigned long long) $1 = 2
 
-        self.expect("expression 2.234f",
-            patterns = ["\(float\) \$.* = 2\.234"])
-        # (float) $2 = 2.234
+        self.expect("expression 0.5f",
+            patterns = ["\(float\) \$.* = 0\.5"])
+        # (float) $2 = 0.5
 
         self.expect("expression 2.234",
             patterns = ["\(double\) \$.* = 2\.234"])
index 590e0ac..634d8d7 100644 (file)
@@ -109,10 +109,10 @@ class AliasTestCase(TestBase):
 
 
         self.expect ("help run",
-                     substrs = [ "'run' is an abbreviation for 'process launch -c /bin/sh --'" ])
+                     substrs = [ "'run' is an abbreviation for 'process launch -c /bin/sh'" ])
 
         self.expect ("help -a run",
-                     substrs = [ "'run' is an abbreviation for 'process launch -c /bin/sh --'" ])
+                     substrs = [ "'run' is an abbreviation for 'process launch -c /bin/sh'" ])
 
         self.expect ("help -a",
                      substrs = [ 'run', 'process launch -c /bin/sh' ])