This is a tool to fake user and group switching. https://cwrap.org
C++ Faking library, which allows faking/mocking regular functions, static member functions and non-virtual member functions for testing purposes.