Skip to content

Bug in the start_module function from ctest_functions.h #8

@ArturAssisComp

Description

@ArturAssisComp

The bug was noticed when testing assert macros.
The following piece of code was used in two different files (test_std_assert_macros_success.c and test_std_assert_macros_fail.c) and an error happened in one of them (test_std_assert_macros_fail.c).

start_module("UI ARRAY-notIsPartPerm", "Every assert in this module must pass.",\
(char *[]){"ASSERT_UNSIGNED_INTEGER_ARRAY_NOT_IS_PARTIAL_PERMUTATION", NULL});
(...)
end_module();

The error does not happen when the third parameter is changed from

(char *[]){"ASSERT_UNSIGNED_INTEGER_ARRAY_NOT_IS_PARTIAL_PERMUTATION", NULL} to
(char *[]){"A_UNSIGNED_INTEGER_ARRAY_NOT_IS_PARTIAL_PERMUTATION", NULL}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions