From fa5ad65e5cff932777a4f5304da08efdf7774102 Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Wed, 13 May 2015 20:17:34 +0000 Subject: [PATCH] Select expected remote libc++ library name based on remote platform. Select expected remote libc++ library name based on remote platform. This is used to verify libc++ is in the loaded image list by various tests which use it. Test Plan: Passes the following tests mac -> linux with this patch: TestDataFormatterLibccIterator.py TestDataFormatterLibccMap.py TestDataFormatterLibccMultiMap.py TestDataFormatterLibcxxMultiSet.py TestDataFormatterLibcxxSet.py TestDataFormatterUnordered.py Differential Revision: http://reviews.llvm.org/D9759 llvm-svn: 237288 --- lldb/test/lldbtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 2d994174be768..6887ec5d932c2 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1836,7 +1836,7 @@ def getLLDBLibraryEnvVal(self): return self.lib_dir def getLibcPlusPlusLibs(self): - if sys.platform.startswith('freebsd') or sys.platform.startswith('linux'): + if self.getPlatform() == 'freebsd' or self.getPlatform() == 'linux': return ['libc++.so.1'] else: return ['libc++.1.dylib','libc++abi.dylib']