[Libosinfo] [libosinfo PATCH 2/2] tests: abort() in case curl misbehaves

Daniel P. Berrangé berrange at redhat.com
Mon Feb 4 13:51:55 UTC 2019


On Mon, Feb 04, 2019 at 02:44:26PM +0100, Fabiano Fidêncio wrote:
> Although the issue with curl should be fixed by the previous commit,
> let's abort in case it misbehaves, avoiding then to have all the data
> printed on stdout.
> 
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
>  tests/test-imageuris.c | 9 +++++++++
>  tests/test-mediauris.c | 9 +++++++++
>  tests/test-treeuris.c  | 9 +++++++++
>  3 files changed, 27 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


There's probably a case to be made for merging these three tests into
one test file as they duplicate 90% of each others code.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the Libosinfo mailing list