test-codecs-parsing: On bad codec string spice_server_set_video_codecs can fail

The 0 result means success however the function (correctly) could
report a failure if the string is incorrect.
This fixes the test after commit b4150de3cd
("spice_server_set_video_codecs: fail when no codec can be installed").

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber <ssheribe@redhat.com
This commit is contained in:
Frediano Ziglio 2019-07-05 13:56:23 +01:00
parent b4150de3cd
commit fdf104fe28

View File

@ -140,7 +140,7 @@ static void codecs_bad(void)
g_test_expect_message(G_LOG_DOMAIN, test_cases[i].log_level, test_cases[i].error_message);
if (test_cases[i].default_err_message)
g_test_expect_message(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "*Failed to set video codecs*");
g_assert_cmpint(spice_server_set_video_codecs(server, test_cases[i].codecs), ==, 0);
g_assert_cmpint(spice_server_set_video_codecs(server, test_cases[i].codecs), !=, 0);
g_test_assert_expected_messages();
}