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_SET_EXPECT_FAILURE(3) FreeBSD Library Functions Manual SHTK_UNITTEST_SET_EXPECT_FAILURE(3)

shtk_unittest_set_expect_failure
Makes the test expect a failure

shtk_import unittest

shtk_unittest_set_expect_failure

The shtk_unittest_set_expect_failure function changes the behavior of the test so that a failure indicates success and a pass indicates a failure.

Changing the expectation of the test to a failure is useful for test cases that exercise a known bug: while the bug is live, the test case will pass with a message describing the error encountered; however, when the bug is fixed, the test will start failing indicating that it needs to be revised.

shtk_unittest_set_expect_failure can only be called once during the execution of a test case and its effects cannot be reversed.

shtk(3), shtk_unittest(3)

shtk_unittest_set_expect_failure 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.