Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

class libtmux-cxx latest

ScopedTmuxServer

A tmux server that exists for the lifetime of this value.

Source and package
Qualified name
libtmux::test::ScopedTmuxServer
Namespace
libtmux::test
Package
libtmux-cxx
Source
include/libtmux/testing/scoped_server.hpp
class libtmux::test::ScopedTmuxServer

Description#

It starts whatever tmux_binary names 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 a Server opened 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#

Guides#

Pages that discuss ScopedTmuxServer.

Esc

Type to search.

Reference previewOpen reference