For a clean skip, structure the unittest to return early instead:
unittest
{
if (!hasExternalTool("readelf"))
return; // tool unavailable on this host - skip
// Test code here...
}Parameters
toolName | The name of the tool to check. |
message | Optional message explaining why the tool is needed. |
Throws
Exception if the tool is not available.