Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SHTK_UNITTEST_SET_EXPECT(3) Library Functions ManuaSHTK_UNITTEST_SET_EXPECT(3)

NAME
       shtk_unittest_set_expect_failure	-- Makes the test expect a failure

LIBRARY
       shtk_import unittest

SYNOPSIS
       shtk_unittest_set_expect_failure

DESCRIPTION
       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 ex-
       ecution of a test case and its effects cannot be	reversed.

SEE ALSO
       shtk(3),	shtk_unittest(3)

HISTORY
       shtk_unittest_set_expect_failure	first appeared in shtk 1.6.

FreeBSD	Ports 14.quarterly     November	8, SHTK_UNITTEST_SET_EXPECT_FAILURE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=shtk_unittest_set_expected_failure&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help