Skip to content

fail_if broken with check 0.15.1 #293

@buscher

Description

@buscher

fail_if is broken with check-0.15.1 (did not test 0.15.0)

The following code no longer compiles

#include <check.h>

void test_check0151()
{
    int a = 1, b = 2;
    fail_if(a == b);
}

with the output

test_check0151.c: In function 'test_check0151':
test_check0151.c:8:5: error: too few arguments to function '_ck_assert_failed'
    8 |     fail_if(a == b);
      |     ^~~~~~~
/usr/include/check.h:502:27: note: declared here
  502 | CK_DLL_EXP void CK_EXPORT _ck_assert_failed(const char *file, int line,
      |                           ^~~~~~~~~~~~~~~~~

I know fail_if is deprecated like forever... but old code is still using it :/

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