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 Windows, 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.