the Compartmented Robust Posix C++ Unit Test system

crpcut::get_start_dir()

Get the working directory that the test program was started from.

Used in: A test function body, the constructor or destructor of a fixture, or a function called from them. See TEST(name, ...).

const char *crpcut::get_start_dir()

Return the name of the working directory that the test program was started from.

[Tip]Tip
It is usually a better idea to use the -p name=value / --param=name=value command line parameter and crpcut::get_parameter() to communicate information about directories to the tests.