# libtmux::test::running_tmux

- **Module:** libtmux::test
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/testing/tmux_version.hpp#L23
- **Page:** https://libtmux.org/reference/cxx/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.
