[lldb][NFC] Rewrite python_api/rdar-12481949 test
authorRaphael Isemann <teemperor@gmail.com>
Tue, 14 Jan 2020 09:06:46 +0000 (10:06 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 14 Jan 2020 09:10:24 +0000 (10:10 +0100)
commitd8ffd601d523fa0c0a55e25e62af9ffaa618629d
tree340656bbdd75b3c93d67dd32747496adf3fcbd78
parenteca44745871bc46728903aaa262abc6344d4f959
[lldb][NFC] Rewrite python_api/rdar-12481949 test

Summary:
This renames the test `rdar-12481949` to `get-value-32bit-int` as it just tests that we return the
correct result get calling GetValueAsSigned/GetValueAsUnsigned on 32-bit integers.

It also deletes all the strange things going on in this test including resetting the data formatters (which are to my
knowledge not used to calculate scalar values) and testing Python's long integers (let's just assume that our Python
distribution works correctly). Also modernises the setup code.

Reviewers: labath, aprantl

Reviewed By: aprantl

Subscribers: JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D72593
lldb/packages/Python/lldbsuite/test/python_api/get-value-32bit-int/Makefile [moved from lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Makefile with 100% similarity]
lldb/packages/Python/lldbsuite/test/python_api/get-value-32bit-int/TestGetValue32BitInt.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/python_api/get-value-32bit-int/main.cpp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Test-rdar-12481949.py [deleted file]
lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/main.cpp [deleted file]