summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-03-26 19:19:25 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2020-03-26 21:52:27 (GMT)
commit6a0708ed5c663fc07f9df5079ec09c0eb35c2689 (patch)
tree7cf55353c975181cff7a7582bab9969abc1a5cdd
parent1b51873ccfccf9dde981ef4aecba7656bad4056b (diff)
downloadlasso-6a0708ed5c663fc07f9df5079ec09c0eb35c2689.zip
lasso-6a0708ed5c663fc07f9df5079ec09c0eb35c2689.tar.gz
lasso-6a0708ed5c663fc07f9df5079ec09c0eb35c2689.tar.bz2
tests: fix compilation with check>0.12 (#39101)
-rw-r--r--tests/non_regression_tests.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/non_regression_tests.c b/tests/non_regression_tests.c
index d2993ec..b16b588 100644
--- a/tests/non_regression_tests.c
+++ b/tests/non_regression_tests.c
@@ -233,27 +233,26 @@ START_TEST(malformed_logout_request)
}
END_TEST
-struct {
- char *name;
- void *function;
-} tests[] = {
- { "Googleapps error from coudot@ on 27-09-2010", test01_googleapps_27092010},
- { "Wrong assertionConsumer ordering on 08-10-2010", indexed_endpoints_20101008},
- { "Warning when parsing AttributeValue node containing unknown namespace nodes", remove_warning_when_parssing_unknown_SNIPPET_LIST_NODES_20111007 },
- { "Wrong endpoint index in artifacts", wrong_endpoint_index_in_artifacts },
- { "Malformed logout request", malformed_logout_request },
-};
-
Suite*
non_regression_suite()
{
+
+ struct {
+ char *name;
+ const void *test;
+ } tests[] = {
+ { "Googleapps error from coudot@ on 27-09-2010", test01_googleapps_27092010},
+ { "Wrong assertionConsumer ordering on 08-10-2010", indexed_endpoints_20101008},
+ { "Warning when parsing AttributeValue node containing unknown namespace nodes", remove_warning_when_parssing_unknown_SNIPPET_LIST_NODES_20111007 },
+ { "Wrong endpoint index in artifacts", wrong_endpoint_index_in_artifacts },
+ { "Malformed logout request", malformed_logout_request },
+ };
Suite *s = suite_create("Non regression tests");
unsigned int i = 0;
for (i = 0 ; i < G_N_ELEMENTS(tests); i++) {
TCase *c = tcase_create(tests[i].name);
- void *f = tests[i].function;
- tcase_add_test(c, f);
+ tcase_add_test(c, tests[i].test);
suite_add_tcase(s, c);
}