Manual Reference Pages - SHTK_UNITTEST_SKIP (3)
- Skips the test currently being run
[arg1 .. argN]
function marks the currently running test as skipped and aborts execution.
The message given in the arguments
is printed along the skip condition.
Skipped tests do not count as failures: instead, they just represent a
test that cannot be successfully be executed and is thus ignored.
Consider the following test case that requires a specific file to be
present in the system:
[ -f /etc/motd ] || skip "/etc/motd not found; cannot validate"
... do something with /etc/motd here ...
first appeared in
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.