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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 3, 2016 at 11:23 AM, Christophe Fergeau <cfergeau@xxxxxxxxxx> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libosinfo

Acked-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux