} T_END;
}
}
-static void test_run_named_funcs(struct named_test tests[], const char *match)
+static void test_run_named_funcs(const struct named_test tests[],
+ const char *match)
{
unsigned int i;
test_run_funcs(test_functions);
return test_deinit();
}
-int test_run_named(struct named_test tests[], const char *match)
+int test_run_named(const struct named_test tests[], const char *match)
{
test_init();
test_run_named_funcs(tests, match);
test_run_fatals(fatal_functions);
return test_deinit();
}
-int test_run_named_with_fatals(const char *match, struct named_test tests[],
- struct named_fatal fatals[])
+int test_run_named_with_fatals(const char *match, const struct named_test tests[],
+ const struct named_fatal fatals[])
{
test_init();
test_run_named_funcs(tests, match);
const char *name;
void (*func)(void);
};
-int test_run_named(struct named_test tests[], const char *match);
+int test_run_named(const struct named_test tests[], const char *match);
#define TEST_DECL(x) void x(void);
#define TEST_NAMELESS(x) x, /* Were you to want to use the X trick but not name the tests */
};
int test_run_with_fatals(void (*test_functions[])(void),
test_fatal_func_t *const fatal_functions[]);
-int test_run_named_with_fatals(const char *match, struct named_test tests[],
- struct named_fatal fatals[]);
+int test_run_named_with_fatals(const char *match, const struct named_test tests[],
+ const struct named_fatal fatals[]);
#define FATAL_DECL(x) enum fatal_test_state x(unsigned int);
#define FATAL_NAMELESS(x) x, /* Were you to want to use the X trick but not name the tests */