mirror of
https://github.com/cuckoosandbox/cuckoo.git
synced 2026-10-11 21:59:53 +00:00
modify unit test for permission denied at system process
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[metadata]
|
||||
description-file = README.md
|
||||
description-file = README.rst
|
||||
|
||||
[tool:pytest]
|
||||
testpaths = tests
|
||||
|
||||
@@ -58,8 +58,7 @@ def test_is32bit_process():
|
||||
p = Process()
|
||||
|
||||
with chdir("cuckoo/data/analyzer/windows"):
|
||||
# Normally (i.e., when not Administrator) the user shouldn't be able
|
||||
# to access the lsass.exe process.
|
||||
# Normally the user shouldn't be able to access the SYSTEM process.
|
||||
with pytest.raises(CuckooError) as e:
|
||||
p.is32bit(process_name="lsass.exe")
|
||||
p.is32bit(pid=4)
|
||||
e.match("process access denied$")
|
||||
|
||||
Reference in New Issue
Block a user