# 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'])
# 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")
# 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")
# 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")
# 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")
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