[PATCH] D43771: [LLDB][PPC64] Fix TestGdbRemoteAuxvSupport
Pavel Labath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 26 05:03:46 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328486: [LLDB][PPC64] Fix TestGdbRemoteAuxvSupport (authored by labath, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D43771
Files:
lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
Index: lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
===================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
+++ lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
@@ -1077,6 +1077,18 @@
auxv_dict = {}
+ # PowerPC64le's auxvec has a special key that must be ignored.
+ # This special key may be used multiple times, resulting in
+ # multiple key/value pairs with the same key, which would otherwise
+ # break this test check for repeated keys.
+ #
+ # AT_IGNOREPPC = 22
+ ignored_keys_for_arch = { 'powerpc64le' : [22] }
+ arch = self.getArchitecture()
+ ignore_keys = None
+ if arch in ignored_keys_for_arch:
+ ignore_keys = ignored_keys_for_arch[arch]
+
while len(auxv_data) > 0:
# Chop off key.
raw_key = auxv_data[:word_size]
@@ -1090,6 +1102,9 @@
key = unpack_endian_binary_string(endian, raw_key)
value = unpack_endian_binary_string(endian, raw_value)
+ if ignore_keys and key in ignore_keys:
+ continue
+
# Handle ending entry.
if key == 0:
self.assertEqual(value, 0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43771.139774.patch
Type: text/x-patch
Size: 1366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180326/3d4c9517/attachment.bin>
More information about the llvm-commits
mailing list