Skip to content

Check version 0.10.0

Compare
Choose a tag to compare
@brarcher brarcher released this 24 Dec 03:10

In addition to a few bug fixes and improvements, the handing of Check when compiled without fork() has changed slightly. Several API calls in the past would intentionally result in errors when they required fork() to make sense. However this has been changed to instead ignore the call. This should help improve unit test interoperability between *nix and Windows.

Changes:

  • CMake on MinGW and MSVC was unable to find time related types because
    time.h was not included. This header is now included for the checks.
  • If the test runner process catches a SIGTERM or SIGINT signal the running
    tests are now also killed.
  • If Check is compiled without support for fork(), the behavior of
    functions which require fork() to be useful have been changed.
    Functions that attempt to set CK_FORK mode are no-ops,
    check_fork() returns in failure, and check_waitpid_and_exit()
    exits in failure.
  • Add space around operators in assert messages for readability.
  • Use mkstemp() if available instead of tmpfile() or tempnam().
  • Fix issue with string formatting in ck_assert(), where using
    the % operator would be interpreted as a string formatter
  • In nofork mode, the location of a failed assertion within a test
    case was lost if that test case has a checked teardown fixture
    (even if that fixture function is empty). This is now fixed.

Downloads