[lldb/test] Fix arch arm for 32-bit armv7l/armv8l

This patch forces architecture "arm" if underlying os reports core
armv7l or armv8l. On linux systems 32 bit sysroot running on 64bit
AArch64 hardware reports armv7l or armv8l which is essently arm
32bit mode. This fixes 5 testcases on 32bit arm.
This commit is contained in:
Muhammad Omair Javaid 2020-03-09 20:28:13 +05:00
parent 92b5b980d2
commit 2b6ad82f8d
1 changed files with 2 additions and 0 deletions

View File

@ -1241,6 +1241,8 @@ class Base(unittest2.TestCase):
arch = module.getArchitecture()
if arch == 'amd64':
arch = 'x86_64'
if arch in ['armv7l', 'armv8l'] :
arch = 'arm'
return arch
def getLldbArchitecture(self):