[all-commits] [llvm/llvm-project] 60dbe3: [lldb] Fix has_lldb_codesign check (#194412)
Sergei Druzhkov via All-commits
all-commits at lists.llvm.org
Mon Apr 27 10:48:26 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 60dbe3fe4051f30ac12f0de56116faf2c516c313
https://github.com/llvm/llvm-project/commit/60dbe3fe4051f30ac12f0de56116faf2c516c313
Author: Sergei Druzhkov <serzhdruzhok at gmail.com>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
M lldb/test/API/macosx/dsym_codesign/TestdSYMCodesign.py
Log Message:
-----------
[lldb] Fix has_lldb_codesign check (#194412)
I met a problem with this test on WSL. WSL has access to Windows's
files. Windows distribution has `security` dir (
`/mnt/c/Windows/security` from WSL point of view). So when we try to run
`security` command we get `PermissionError` instead of
`FileNotFoundError`. It is would not be a problem, but Python firstly
calls decorators for methods (see example below), so we call
`has_lldb_codesign()` not only on Darwin platform. Also I think some
Linux distros might have `security` command, so the current check is not
robust enough.
```python
import unittest
def checker():
raise Exception("test")
@unittest.skipUnless(False, "")
class Tests(unittest.TestCase):
@unittest.skipUnless(checker(), ())
def test():
pass
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list