summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-06-17 12:32:09 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-06-17 12:32:09 +0000
commitd3d2edf901de87f40f311dc5b9150acc54a77ef3 (patch)
tree2c607c8e5325531dc15c615b377baf45b34b8866 /lldb/packages/Python/lldbsuite/test/dotest.py
parent582f2692945a61968b4c54d8b3606181c5e4142a (diff)
downloadbcm5719-llvm-d3d2edf901de87f40f311dc5b9150acc54a77ef3.tar.gz
bcm5719-llvm-d3d2edf901de87f40f311dc5b9150acc54a77ef3.zip
[lldb] [test] Watchpoint tests can be always run as root on NetBSD
llvm-svn: 363551
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 77ce5828c99..ab2ad790f8f 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -1186,6 +1186,8 @@ def canRunWatchpointTests():
platform = lldbplatformutil.getPlatform()
if platform == "netbsd":
+ if os.geteuid() == 0:
+ return True, "root can always write dbregs"
try:
output = subprocess.check_output(["/sbin/sysctl", "-n",
"security.models.extensions.user_set_dbregs"]).decode().strip()
OpenPOWER on IntegriCloud