[Lldb-commits] [PATCH] D18985: Fix test cases for big-endian systems
Ulrich Weigand via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 11 11:48:37 PDT 2016
uweigand created this revision.
uweigand added reviewers: granata.enrico, clayborg.
uweigand added a subscriber: lldb-commits.
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.
This test case:
python_api/sbdata/TestSBData.py (first change)
could be fixed to check for big-endian target byte order.
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.
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
make byte order assumption, but since they're not using the Python API, I didn't
see an easy way to check for target byte order. Instead, I've changes those test
to simply accept either the results see on a little-endian system or those seen
on a big-endian system.
http://reviews.llvm.org/D18985
Files:
packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py
packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-smart-array/TestDataFormatterSmartArray.py
packages/Python/lldbsuite/test/functionalities/data-formatter/synthcapping/TestSyntheticCapping.py
packages/Python/lldbsuite/test/functionalities/memory/cache/TestMemoryCache.py
packages/Python/lldbsuite/test/lang/cpp/frame-var-anon-unions/TestFrameVariableAnonymousUnions.py
packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py
packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18985.53301.patch
Type: text/x-patch
Size: 15722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160411/bcfcd7ee/attachment-0001.bin>
More information about the lldb-commits
mailing list