fix(cli): make Desktop attachment checks portable

Avoid a false-positive session-prefix match in the architecture guard without changing endpoint validation. Pass a null pointer as an integer to the native Windows pipe fixture, and name oversized-input cases explicitly so pytest does not exceed the Windows environment-variable limit.

Keep the real owner-authenticated roundtrip and oversized-payload assertions. Local CLI, architecture and gateway checks pass; native Windows verification is rerun in CI.
This commit is contained in:
Xubin Ren committed 2026-09-08 10:04:15 +08:00
1 parent d641026fc8
commit ddf095938e
3 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ def test_native_windows_pipe_roundtrip():
rf"\\.\pipe\{address}",
winapi.PIPE_ACCESS_DUPLEX | winapi.FILE_FLAG_OVERLAPPED,
0, # PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT
1, 8192, 8192, 1000, None,
1, 8192, 8192, 1000, 0,
)
connected = winapi.ConnectNamedPipe(handle, overlapped=True)
received = []