GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SHTK_UNITTEST_SKIP(3) FreeBSD Library Functions Manual SHTK_UNITTEST_SKIP(3)

shtk_unittest_skip
Skips the test currently being run

shtk_import unittest

shtk_unittest_skip [arg1 .. argN]

The shtk_unittest_skip function marks the currently running test as skipped and aborts execution. The message given in the arguments arg1 through argN 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:
shtk_unittest_add_test motd_contents
motd_contents_test() {
    [ -f /etc/motd ] || skip "/etc/motd not found; cannot validate"

    ... do something with /etc/motd here ...
}

shtk(3), shtk_unittest(3)

shtk_unittest_skip first appeared in shtk 1.6.
November 8, 2014 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.