diff options
| author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-11-12 19:43:56 +0000 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2015-11-18 12:54:43 +0100 |
| commit | 75c26f9ec8d69af88bbf1d07b2c7b38d08e8d67d (patch) | |
| tree | 8ab18dbdb7b40d8194b6828ccc5e96f25fd2355d /daemons/ipa-slapi-plugins/ipa-cldap | |
| parent | 2d39acf626358c01b5f18567f991b195ca842641 (diff) | |
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>
Diffstat (limited to 'daemons/ipa-slapi-plugins/ipa-cldap')
| -rw-r--r-- | daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_tests.c b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_tests.c index 8f579cb0c..48b9636fa 100644 --- a/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_tests.c +++ b/daemons/ipa-slapi-plugins/ipa-cldap/ipa_cldap_tests.c @@ -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); } |
