From f7174ef573b2b53d7bfbff6b200ce625d1ab3551 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 20 Mar 2018 13:46:05 +0000 Subject: [LLDB] Fix TestTargetXMLArch's expected arch Summary: When running on an architecture other than x86_64, the target.ConnectRemote() part of the test may add platform information to the target triple. It was observed that this happens at Process::CompleteAttach() method, after the platform_sp->IsCompatibleArchitecture() check fails. This method then calls platform_sp->GetPlatformForArchitecture(), that on a Linux machine ends up returning a generic Linux platform, that then ends up getting added to the original target architecture. Reviewers: clayborg, labath, jasonmolenda Reviewed By: labath Subscribers: alexandreyy, lbianc Differential Revision: https://reviews.llvm.org/D44022 Patch by Leandro Lupori . llvm-svn: 327981 --- .../test/functionalities/gdb_remote_client/TestTargetXMLArch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestTargetXMLArch.py b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestTargetXMLArch.py index b6d38955807..ef9ce770096 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestTargetXMLArch.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestTargetXMLArch.py @@ -121,4 +121,4 @@ class TestTargetXMLArch(GDBRemoteTestBase): if self.TraceOn(): interp.HandleCommand("target list", result) print(result.GetOutput()) - self.assertEqual('x86_64--', target.GetTriple()) + self.assertTrue(target.GetTriple().startswith('x86_64--')) -- cgit v1.2.3