Skip to content

Commit

Permalink
UTs: fix fct signature
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau committed Apr 2, 2024
1 parent a8e7ddb commit b792bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unittests/tests.c
Expand Up @@ -14,13 +14,13 @@ int checks_failed = 0;

static struct TestCase {
const char *name;
int (*test_function)(void);
void (*test_function)(void);
} tests[MAX_NUM_TESTS];

static unsigned int test_count = 0; // global number of registered tests

// Function to register a test case
int register_test(const char *name, int (*test_function)(void))
int register_test(const char *name, void (*test_function)(void))
{
if(test_count < sizeof(tests) / sizeof(tests[0])) {
tests[test_count].name = name;
Expand Down

0 comments on commit b792bf2

Please sign in to comment.