Skip to content
Permalink
Browse files

[lldb] [test] Watchpoint tests can be always run as root on NetBSD

llvm-svn: 363551
  • Loading branch information...
mgorny committed Jun 17, 2019
1 parent 582f269 commit d3d2edf901de87f40f311dc5b9150acc54a77ef3
Showing with 2 additions and 0 deletions.
  1. +2 −0 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()

0 comments on commit d3d2edf

Please sign in to comment.
You can’t perform that action at this time.