[GH-ISSUE #622] tests: remove libc dependency and env mutation in terminal tests #936

Closed
opened 2026-03-14 09:05:28 +03:00 by kerem · 0 comments
Owner

Originally created by @simonklee on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/622

Originally assigned to: @simonklee on GitHub.

Terminal tests currently require libc just to set/unset env vars, which changes the threading implementation used in tests versus production (for instance). pthreads in tests; build uses raw clone().
Tests also mutate global process env, which is not thread-safe and can cause flakiness.

To drop the libc requirement we can allow Terminal to accept EnvMap so tests don't touch process env.

Originally created by @simonklee on GitHub (Feb 4, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/622 Originally assigned to: @simonklee on GitHub. Terminal tests currently require libc just to set/unset env vars, which changes the threading implementation used in tests versus production (for instance). pthreads in tests; build uses raw `clone()`. Tests also mutate global process env, which is not thread-safe and can cause flakiness. To drop the libc requirement we can allow Terminal to accept EnvMap so tests don't touch process env.
kerem 2026-03-14 09:05:28 +03:00
  • closed this issue
  • added the
    core
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#936
No description provided.