diff options
author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-09-20 19:01:20 +0000 |
---|---|---|
committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-09-20 19:01:20 +0000 |
commit | b742879c35eb685b8d299ba52f6c9779f7142210 (patch) | |
tree | 48e86704d0495f6c9e4d8f2a977dc940bc5d33b5 | |
parent | bf40e95959089f2cc2868bb03885de58833bbad8 (diff) | |
download | bcm5719-llvm-b742879c35eb685b8d299ba52f6c9779f7142210.tar.gz bcm5719-llvm-b742879c35eb685b8d299ba52f6c9779f7142210.zip |
Add an xfail test as 'expr myfloat' can add digits consistent
with the closest available 32-bit floating point representation.
llvm-svn: 191101
-rw-r--r-- | lldb/test/expression_command/test/TestExprs.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/test/expression_command/test/TestExprs.py b/lldb/test/expression_command/test/TestExprs.py index 71f62fb1402..91492c1384c 100644 --- a/lldb/test/expression_command/test/TestExprs.py +++ b/lldb/test/expression_command/test/TestExprs.py @@ -33,7 +33,7 @@ class BasicExprCommandsTestCase(TestBase): self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm")) - def test_many_expr_commands(self): + def build_and_run(self): """These basic expression commands should work as expected.""" self.buildDefault() @@ -43,6 +43,17 @@ class BasicExprCommandsTestCase(TestBase): self.runCmd("run", RUN_SUCCEEDED) + @unittest2.expectedFailure # llvm.org/pr17135: APFloat::toString does not identify the correct (i.e. least) precision. + def test_floating_point_expr_commands(self): + self.build_and_run() + + self.expect("expression 2.234f", + patterns = ["\(float\) \$.* = 2\.234"]) + # (float) $2 = 2.234 + + def test_many_expr_commands(self): + self.build_and_run() + self.expect("expression 2", patterns = ["\(int\) \$.* = 2"]) # (int) $0 = 1 |