[Lldb-commits] [lldb] r190100 - Fix minor bugs in TestExprs and TestAliases to fix buildbot breakage

Daniel Malea daniel.malea at intel.com
Thu Sep 5 14:24:14 PDT 2013


Author: dmalea
Date: Thu Sep  5 16:24:14 2013
New Revision: 190100

URL: http://llvm.org/viewvc/llvm-project?rev=190100&view=rev
Log:
Fix minor bugs in TestExprs and TestAliases to fix buildbot breakage
- '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


Modified:
    lldb/trunk/test/expression_command/test/TestExprs.py
    lldb/trunk/test/functionalities/alias/TestAliases.py

Modified: lldb/trunk/test/expression_command/test/TestExprs.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/test/TestExprs.py?rev=190100&r1=190099&r2=190100&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/test/TestExprs.py (original)
+++ lldb/trunk/test/expression_command/test/TestExprs.py Thu Sep  5 16:24:14 2013
@@ -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"])

Modified: lldb/trunk/test/functionalities/alias/TestAliases.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/alias/TestAliases.py?rev=190100&r1=190099&r2=190100&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/alias/TestAliases.py (original)
+++ lldb/trunk/test/functionalities/alias/TestAliases.py Thu Sep  5 16:24:14 2013
@@ -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' ])





More information about the lldb-commits mailing list