-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecated API calls in unit tests #290
Comments
The actual fix is relatively easy. You have to replace the deprecated API call in your return statement in a unit test with 128 int main(void)
129 {
130 const struct CMUnitTest tests[] = {
131 cmocka_unit_test(test_prefix_to_path),
132 cmocka_unit_test(test_uri_to_prefix),
133 cmocka_unit_test(test_append_to_prefix),
134 cmocka_unit_test(test_prefix_exact_match),
135 cmocka_unit_test(test_prefix_no_exact_match),
136 cmocka_unit_test(test_prefix_longest_match),
137 cmocka_unit_test(test_prefix_no_longest_match),
138 };
139
140 return cmocka_run_group_tests_name("core: prefix tests", tests, NULL, NULL);
141 } I've started to write a fix for our existing unit tests which can be found here. Unfortunately, the cmocka version on semaphore CI uses the package with the old API. We can either wait for an upgrade or think about using backports or other mechanisms to get a recent version of cmocka running. |
|
Your issue (compilation failure) is not related to this issue (compilation warning). I've opened a new issue #299 |
I thought it was related, but I was wrong.Thanks for your help. |
The "problem" we are facing in this issue is that the cmocka version we run on our own (developer) machines is newer than what semaphore (the CI system we use) provides. This results in this deprecated API warnings on machines with recent cmocka versions. |
Description
If you build the unit tests with a recent version of cmocka, the compiler will produce warnings about deprecated calls to
_run_tests
.Steps to reproduce the issue
You have to follow the standard build instructions
Expected results
Unit tests compile without warnings.
Actual results
Compiling unit tests result in warnings on deprecated API calls to
_run_tests
The text was updated successfully, but these errors were encountered: