ScopedTmuxServer
A tmux server that exists for the lifetime of this value.
Source and package
- Qualified name
-
libtmux::test:: Scoped Tmux Server - Namespace
- libtmux::test
- Package
- libtmux-cxx
- Source
- include/libtmux/testing/scoped_server.hpp
-
Description#
It starts whatever
tmux_binarynames without asking its release: the fixture owns the server, so there is no user hook to protect, and a suite that checks how the library refuses an older daemon needs one to exist. The library's own floor applies to aServeropened on this socket, not here.Owns a private socket and directory and kills the server on destruction, so suites running at once cannot see each other's sessions. Teardown reports rather than throws — a destructor that throws during a failing test hides the failure.
Members13#
- ~ScopedTmuxServer method
- child_environment method
NAME=VALUEentries for a child that should reach this server and not the surrounding one:TMUX_TMPDIRinside the private tree,TMUXandTMUX_PANEabsent. - command_prefix method
- is_alive method
- ScopedTmuxServer method
- server_pid method
- session_name method
- socket_mode method
- socket_name method
- socket_namespace method
- socket_path method
- start method
- tmux_tmpdir method
Guides#
Pages that discuss ScopedTmuxServer.
- Examples
- Guides
- Topics