[Lldb-commits] [lldb] r190307 - test: Handle libc++ shared lib name on FreeBSD
Ed Maste
emaste at freebsd.org
Mon Sep 9 07:04:04 PDT 2013
Author: emaste
Date: Mon Sep 9 09:04:04 2013
New Revision: 190307
URL: http://llvm.org/viewvc/llvm-project?rev=190307&view=rev
Log:
test: Handle libc++ shared lib name on FreeBSD
(I didn't take a guess at the Linux names, as these tests are currently
skipped with the comment "No standard locations for libc++ on Linux.")
Modified:
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py?rev=190307&r1=190306&r2=190307&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py Mon Sep 9 09:04:04 2013
@@ -57,7 +57,7 @@ class LibcxxIteratorDataFormatterTestCas
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
- self.expect('image list',substrs=['libc++.1.dylib','libc++abi.dylib'])
+ self.expect('image list', substrs = self.getLibcPlusPlusLibs())
self.expect('frame variable ivI', substrs = ['item = 3'])
self.expect('expr ivI', substrs = ['item = 3'])
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py?rev=190307&r1=190306&r2=190307&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py Mon Sep 9 09:04:04 2013
@@ -55,7 +55,7 @@ class LibcxxMapDataFormatterTestCase(Tes
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
- self.expect('image list',substrs=['libc++.1.dylib','libc++abi.dylib'])
+ self.expect('image list', substrs = self.getLibcPlusPlusLibs())
self.runCmd("frame variable ii --show-types")
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py?rev=190307&r1=190306&r2=190307&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/TestDataFormatterLibccMultiMap.py Mon Sep 9 09:04:04 2013
@@ -55,7 +55,7 @@ class LibcxxMultiMapDataFormatterTestCas
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
- self.expect('image list',substrs=['libc++.1.dylib','libc++abi.dylib'])
+ self.expect('image list', substrs = self.getLibcPlusPlusLibs())
self.runCmd("frame variable ii --show-types")
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py?rev=190307&r1=190306&r2=190307&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/multiset/TestDataFormatterLibcxxMultiSet.py Mon Sep 9 09:04:04 2013
@@ -55,7 +55,7 @@ class LibcxxMultiSetDataFormatterTestCas
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
- self.expect('image list',substrs=['libc++.1.dylib','libc++abi.dylib'])
+ self.expect('image list', substrs = self.getLibcPlusPlusLibs())
self.expect("frame variable ii",substrs = ["size=0","{}"])
self.runCmd("continue")
Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py?rev=190307&r1=190306&r2=190307&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-stl/libcxx/set/TestDataFormatterLibcxxSet.py Mon Sep 9 09:04:04 2013
@@ -55,7 +55,7 @@ class LibcxxSetDataFormatterTestCase(Tes
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
- self.expect('image list',substrs=['libc++.1.dylib','libc++abi.dylib'])
+ self.expect('image list', substrs = self.getLibcPlusPlusLibs())
self.expect("frame variable ii",substrs = ["size=0","{}"])
self.runCmd("continue")
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=190307&r1=190306&r2=190307&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Mon Sep 9 09:04:04 2013
@@ -1444,6 +1444,12 @@ class Base(unittest2.TestCase):
else:
return self.lib_dir
+ def getLibcPlusPlusLibs(self):
+ if sys.platform.startswith('freebsd'):
+ return ['libc++.so.1']
+ else:
+ return ['libc++.1.dylib','libc++abi.dylib']
+
class TestBase(Base):
"""
This abstract base class is meant to be subclassed. It provides default
More information about the lldb-commits
mailing list