Skip to content

Assertions are not runned in the child processes created with cut_fork #22

Description

@cristid9

For example, I would expect this code snippet to fail:

#include <cutter.h>

// This will pass.
void test_proveUnexpectedFailure()
{
    int pid = cut_fork();
    if (0 == pid) {
        cut_assert_equal_int(0, 1);  // If it passes, then something is wrong...
    }

    cut_assert_equal_int(0, 0); 
}

But it succeeds.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions