[Lldb-commits] [lldb] r363551 - [lldb] [test] Watchpoint tests can be always run as root on NetBSD
Michal Gorny via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 17 05:32:09 PDT 2019
Author: mgorny
Date: Mon Jun 17 05:32:09 2019
New Revision: 363551
URL: http://llvm.org/viewvc/llvm-project?rev=363551&view=rev
Log:
[lldb] [test] Watchpoint tests can be always run as root on NetBSD
Modified:
lldb/trunk/packages/Python/lldbsuite/test/dotest.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=363551&r1=363550&r2=363551&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Mon Jun 17 05:32:09 2019
@@ -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()
More information about the lldb-commits
mailing list