[Lldb-commits] [PATCH] D15262: Add initial NetBSD support in lldbsuite/test/lldbtest.py
Joerg Sonnenberger via lldb-commits
lldb-commits at lists.llvm.org
Sun Dec 6 07:56:46 PST 2015
joerg added a comment.
Two small cleanups, otherwise LGTM.
================
Comment at: packages/Python/lldbsuite/test/lldbtest.py:1328
@@ -1313,3 +1327,3 @@
cls.platformContext = _PlatformContext('DYLD_LIBRARY_PATH', 'lib', 'dylib')
- elif getPlatform() == "linux" or getPlatform() == "freebsd":
+ elif getPlatform() == "linux" or getPlatform() == "freebsd" or getPlatform() == "netbsd":
cls.platformContext = _PlatformContext('LD_LIBRARY_PATH', 'lib', 'so')
----------------
I'd prefer `getPlatform() in ("linux", "freebsd", "netbsd")` as more shorter.
================
Comment at: packages/Python/lldbsuite/test/lldbtest.py:2288
@@ -2271,3 +2287,3 @@
def getLibcPlusPlusLibs(self):
- if self.getPlatform() == 'freebsd' or self.getPlatform() == 'linux':
+ if self.getPlatform() == 'freebsd' or self.getPlatform() == 'linux' or self.getPlatform() == 'netbsd':
return ['libc++.so.1']
----------------
Same, `self.getPlatform in ...`
Repository:
rL LLVM
http://reviews.llvm.org/D15262
More information about the lldb-commits
mailing list