mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
cmocka_tests: Do not use deprecated cmocka interface
The cmocka-1.0 introduced new interface for tests which is not compatible with the old one. And the old interface is deprecated which caused compiled warnings. Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
2d39acf626
commit
75c26f9ec8
@@ -59,10 +59,10 @@ void test_make_netbios_name(void **state)
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
|
||||
const UnitTest tests[] = {
|
||||
unit_test(test_make_netbios_name),
|
||||
const struct CMUnitTest tests[] = {
|
||||
cmocka_unit_test(test_make_netbios_name),
|
||||
};
|
||||
|
||||
return run_tests(tests);
|
||||
return cmocka_run_group_tests(tests, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user