You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(test): use platform c_char in websocket PTY buffers #1641
The all-target Clippy measurement for aarch64-unknown-linux-gnu cannot compile fbuild-daemon's socket tests. At commit 95294355d02d3425ccf7fa3fe428618da51dbde2, crates/fbuild-daemon/src/handlers/websockets_tests.rs uses [0i8; 256] for three ttyname_r buffers. On this target, libc's character type is unsigned.
Observed errors: lines 32/177/206 pass *mut i8 where ttyname_r expects *mut u8; lines 34/180/210 pass *const i8 where CStr::from_ptr expects *const u8. The run reported six E0308 errors and failed the library test target.
Reproduced through an isolated Bosn task using Soldr 0.9.27, the repository's Rust pin, soldr prepare --target aarch64-unknown-linux-gnu, then soldr cargo clippy --workspace --all-targets --locked --target aarch64-unknown-linux-gnu --message-format=short -- -D warnings -W clippy::cognitive_complexity -W clippy::too_many_lines. The diagnostic sets PYO3_NO_PYTHON=1; native embedded-Python configuration requires a separate correction, but this ARM error directly identifies the three signed buffers.
Use libc::c_char for the buffers and retain the existing tests and assertions. Verify the original native gate and ARM all-target Clippy after the change. This is compilation evidence, not proof of ARM test execution. Found while completing the cross-target complexity-ratchet inventory associated with #1640.
Activity