teak-llvm/lldb/packages/Python/lldbsuite/test
Raphael Isemann e5814d78ce [lldb] Limit the amount of zeroes we use for padding when printing small floats
Summary:
We got a radar that printing small floats is not very user-friendly in LLDB as we print them with up to
100 leading zeroes before starting to use scientific notation. This patch changes this by already using
scientific notation when we hit 6 padding zeroes by default and moves this value into a target setting
so that users can just set this number back to 100 if they for some reason preferred the old behaviour.

This new setting is influencing how we format data, so that's why we have to reset the data visualisation
cache when it is changed.

Note that we have always been using scientific notation for large numbers because it seems that
the LLVM implementation doesn't support printing out the padding zeroes for them. I would have fixed
that if it was trivial, but looking at the LLVM implementation for this it seems that this is not as trivial
as it sounds. I would say we look into this if we ever get a bug report about someone wanting to have
a large amount of trailing zeroes in their numbers instead of using scientific notation.

Fixes rdar://39744137

Reviewers: #lldb, clayborg

Reviewed By: clayborg

Subscribers: JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D67001

llvm-svn: 370880
2019-09-04 11:41:23 +00:00
..
android/platform [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
api [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
arm [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
benchmarks [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
commands [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
driver/batch_mode Port TestBatchMode to PExpectTest class 2019-09-04 09:20:08 +00:00
functionalities [lldb] Limit the amount of zeroes we use for padding when printing small floats 2019-09-04 11:41:23 +00:00
iohandler/completion dotest: improvements to the pexpect tests 2019-08-30 09:07:42 +00:00
issue_verification [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
lang [lldb][NFC] Add a simple test for thread_local storage. 2019-09-04 08:02:52 +00:00
linux [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
macosx [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
make [test] Addres TestConcurrentMany*.py flakiness on macOS 2019-09-03 17:04:04 +00:00
plugins [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
python_api [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
sample_test [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
sanity [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
source-manager [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
terminal [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
test_runner [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
tools [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
types [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
__init__.py
.categories
bench.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
concurrent_base.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
configuration.py [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
darwin_log.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
decorators.py [dotest] Add @skipIfCursesSupportMissing and annotate the new gui test 2019-09-02 13:33:12 +00:00
dotest_args.py [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
dotest.py [dotest] Finish removing -q 2019-08-30 11:02:58 +00:00
lldb_pylint_helper.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldbbench.py
lldbdwarf.py Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
lldbinline.py [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
lldbpexpect.py Port TestBatchMode to PExpectTest class 2019-09-04 09:20:08 +00:00
lldbplatform.py [dotest] Remove dead code 2019-07-26 01:58:18 +00:00
lldbplatformutil.py [dotest] Remove dead code 2019-07-26 01:58:18 +00:00
lldbtest_config.py [dotest] Add the ability to set environment variables for the inferior. 2019-06-26 16:12:08 +00:00
lldbtest.py [test] Fix various module cache bugs and inconsistencies 2019-08-29 18:37:05 +00:00
lldbutil.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
lock.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
Makefile [dotest] Avoid the need for LEVEL= makefile boilerplate 2019-09-04 07:46:25 +00:00
README-TestSuite Reflow readme 2018-12-17 21:18:12 +00:00
redo.py
test_categories.py [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
test_result.py [dotest] Remove -q (quiet) flag. 2019-08-28 16:28:58 +00:00