# libtmux::test::running_tmux

- **Module:** libtmux::test
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/testing/tmux_version.hpp#L23
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-test-running_tmux/

```
libtmux::test::running_tmux(tmux_binary: const std::filesystem::path & = "tmux") -> Version
```

Resolved once per distinct binary and cached.

A tmux that cannot be run or whose version cannot be parsed reports as the newest possible version, so version-gated tests run and fail rather than silently skipping.
