Skip to content

Linux: build the native-help test; test presses in a scrolled viewport - #32

Merged
kitlangton merged 2 commits into
devfrom
linux-test-build
Oct 30, 2026
Merged

kitlangton merged 2 commits into
devfrom
linux-test-build

Conversation

@thdxr

@thdxr thdxr commented Oct 28, 2026

Copy link
Copy Markdown
Member

Two small things found while building Hokum on dev:

  • Runtime::set_native_help was #[cfg(target_os = "macos")], but runtime/on_key_tests.rs calls it unconditionally, so cargo test -p rune --lib didn't compile on Linux. It's now also built for tests.
  • A regression test: a press on a row scrolled into view lands on that row. This already works on dev; Hokum's settings window depends on it.

With this, cargo test -p rune --lib runs on Linux: 1007 pass, and 6 fail in keycaps, video, edit and render/layers. Those 6 are unrelated to this change and also fail on dev on Linux.

set_native_help was macOS-only, so on_key_tests failed to compile on Linux.
The new input test pins that a press on a row scrolled into view lands on that
row, which Hokum's settings window relies on.
@kitlangton
kitlangton merged commit aa2b7c1 into dev Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants