carb::extras::getDistroName
Defined in carb/extras/TestEnvironment.h
- 
inline const char *carb::extras::getDistroName()
- Retrieves the platform distro name. - Returns
- On Linux, the name of the distro the process is running under as seen in the “ID” tag in the ‘/etc/os-release’ file if it can be found. On MacOS, the name of the OS code name that the process is running on is returned if it can be found. On Windows, this returns the name “Windows”. 
- Returns
- On Linux, the name “Linux” if the ‘/etc/os-release’ file cannot be accessed or the “ID” tag cannot be found in it. On Windows, there is no failure path. 
- Returns
- On MacOS, the name “MacOS” if the distro name cannot be found or the appropriate tag in it cannot be found.