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

llvm-svn: 190100
This commit is contained in:
Daniel Malea 2013-09-05 21:24:14 +00:00
parent 09cdb4385f
commit d4905b0ef9
2 changed files with 5 additions and 5 deletions

View 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"])

View 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' ])