Skip to content

Commit bd52b1a

Browse files
committed
More tests adaptation for arm64
1 parent 064b22f commit bd52b1a

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/pfwtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
process_32bit_only = pytest.mark.skipif(not is_process_32_bits, reason="Test for 32bits process only")
2323
process_64bit_only = pytest.mark.skipif(not is_process_64_bits, reason="Test for 64bits process only")
24-
process_syswow_only = pytest.mark.skipif(not is_process_syswow, reason="Test for syswow process only")
24+
process_syswow_only = pytest.mark.skipif((not is_process_syswow) or windows.current_process._is_x86_on_arm64, reason="Test for syswow process only (ARM64 computer not supported)")
2525
require_admin = pytest.mark.skipif(not is_admin, reason="Test must be launched as admin")
2626

2727
def process_architecture_only(target_archi):

windows/winobject/handle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def enumerate_handles():
144144

145145

146146
def enumerate_handles_syswow64():
147+
if windows.current_process._is_x86_on_arm64:
148+
raise NotImplementedError("Crossing heaven gate x86 -> arm64 not implemented")
147149
size_needed = gdef.ULONG()
148150
# Should at least be sizeof(gdef.SYSTEM_HANDLE_INFORMATION)
149151
tmp_buffer = windows.utils.BUFFER(gdef.SYSTEM_HANDLE_INFORMATION64)()

windows/winobject/system_module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def enumerate_kernel_modules():
4444
return list(modules)
4545

4646
def enumerate_kernel_modules_syswow64():
47+
if windows.current_process._is_x86_on_arm64:
48+
raise NotImplementedError("Crossing heaven gate x86 -> arm64 not implemented")
4749
cbsize = gdef.DWORD()
4850
windows.syswow64.NtQuerySystemInformation_32_to_64(gdef.SystemModuleInformation, None, 0, ctypes.addressof(cbsize))
4951
raw_buffer = (cbsize.value * gdef.BYTE)()

0 commit comments

Comments
 (0)