teak-llvm/lldb/packages/Python/lldbsuite/test/python_api
Ulrich Weigand 7e8de59b90 Fix test cases for big-endian systems
A number of test cases were failing on big-endian systems simply due to
byte order assumptions in the tests themselves, and no underlying bug
in LLDB.

These two test cases:
  tools/lldb-server/lldbgdbserverutils.py
  python_api/process/TestProcessAPI.py
actually check for big-endian target byte order, but contain Python errors
in the corresponding code paths.

These test cases:
  functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
  functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
  functionalities/data-formatter/synthcapping/TestSyntheticCapping.py
  lang/cpp/frame-var-anon-unions/TestFrameVariableAnonymousUnions.py
  python_api/sbdata/TestSBData.py  (first change)
could be fixed to check for big-endian target byte order and update the
expected result strings accordingly.  For the two synthetic tests, I've
also updated the source to make sure the fake_a value is always nonzero
on both big- and little-endian platforms.

These test case:
  python_api/sbdata/TestSBData.py  (second change)
  functionalities/memory/cache/TestMemoryCache.py
simply accessed memory with the wrong size, which wasn't noticed on LE
but fails on BE.

Differential Revision: http://reviews.llvm.org/D18985

llvm-svn: 266315
2016-04-14 14:35:02 +00:00
..
breakpoint Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
class_members Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
debugger Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
default-constructor Remove the skip if Darwin since I fixed the crash. 2016-03-11 19:15:03 +00:00
disassemble-raw-data Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
event Remove expectedFailureLinux decorator. 2016-02-10 19:53:36 +00:00
exprpath_synthetic Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
findvalue_duplist Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
formatters Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
frame Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
function_symbol Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
hello_world Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
interpreter Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
lldbutil Mark TestPrintStackTraces as flaky on android arm 2016-04-11 16:50:08 +00:00
module_section Move some of the common decorators to decorators.py. 2016-02-04 18:03:01 +00:00
objc_type Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
process Fix test cases for big-endian systems 2016-04-14 14:35:02 +00:00
rdar-12481949 Remove a broken hack from Scalar::ULongLong and fix a test 2015-11-13 10:51:35 +00:00
sbdata Fix test cases for big-endian systems 2016-04-14 14:35:02 +00:00
sbtype_typeclass Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
sbvalue_const_addrof Tighten up sys.path, and use absolute imports everywhere. 2015-11-03 02:06:18 +00:00
sbvalue_persist Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
section Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
signals Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
symbol-context Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
target Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
thread Remove expectedFailureFreeBSD decorator 2016-02-19 19:25:03 +00:00
type Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
value Change lldb.value.__int__() so that it takes into account the signedness of the value being cast to return a Python number with the proper value 2016-02-10 02:12:42 +00:00
value_var_update Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
watchpoint Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
.categories