[Spice-devel] [vdagent-win PATCH 4/4] imagetest: replace assert with printf

Christophe Fergeau cfergeau at redhat.com
Mon Jul 17 11:10:27 UTC 2017


On Fri, Jul 14, 2017 at 05:48:45AM -0400, Frediano Ziglio wrote:
> > 
> > If one does not have gdb installed it's nicer
> > to simply get the error message (and some
> > debug messages).
> > 
> 
> I don't really agree. The imagetest is supposed to be a test
> utility so is used only during development.

The fact that you added support for running it at package build time
means it's used for a little bit more than "development" :)

I'd at least pick the first hunk of this patch which returns a proper
error/help string when not enough args are passed, rather than just
asserting (one might want to run this by hand when a test failure is
detected). I'm fine with the rest of the code using asserts.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170717/1d198b2f/attachment.sig>


More information about the Spice-devel mailing list