Skip to content

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

@cristid9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions