[Libosinfo] [PATCH 3/4] test: Silence expected warning in test-os

Fabiano Fidêncio fidencio at redhat.com
Fri Jun 3 10:53:14 UTC 2016


On Fri, Jun 3, 2016 at 11:23 AM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> ---
>  test/test-os.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/test/test-os.c b/test/test-os.c
> index 604b289..ad926cb 100644
> --- a/test/test-os.c
> +++ b/test/test-os.c
> @@ -124,6 +124,9 @@ START_TEST(test_loader)
>      fail_unless(os != NULL, "could not find OS 'test5'");
>      str = osinfo_product_get_short_id(OSINFO_PRODUCT(os));
>      fail_unless(g_strcmp0(str, "test5") == 0, "wrong OS short-id");
> +    /* 'test5' OS intentionnally contains an invalid release status */
> +    g_test_expect_message(NULL, G_LOG_LEVEL_CRITICAL,
> +                          "*(osinfo_entity_get_param_value_enum): should not be reached*");
>      fail_unless(osinfo_os_get_release_status(os) == OSINFO_RELEASE_STATUS_RELEASED,
>                  "OS should be a released one");
>
> --
> 2.7.4
>
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo

Acked-by: Fabiano Fidêncio <fidencio at redhat.com>




More information about the Libosinfo mailing list