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:
Lukas Slebodnik
2015-11-12 19:43:56 +00:00
committed by Martin Basti
parent 2d39acf626
commit 75c26f9ec8
3 changed files with 36 additions and 25 deletions

View File

@@ -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);
}