Subject: Re: [PATCH] examples: use stderr for messages, stdout for data

Re: [PATCH] examples: use stderr for messages, stdout for data

From: Peter Stuge <>
Date: Mon, 22 Oct 2012 22:05:27 +0200

Kamil Dudka wrote:
> > > I think this is a waste of time.
> I am not forcing anybody to work on this. The time I spent on writing
> the patch was sponsored by my employer, so it was not a big waste really.

Waste for the employer IMO.

> We are trying to introduce an easy way to test new releases of
> libssh2 independently of the libraries and applications that use it.

This is a great idea!

> Running the set of examples distributed with libssh2 seemed like a
> reasonable step to start with.

This not so much. The examples are, third time, intended to
demonstrate *library usage*. They are specifically not test cases.

I would very much welcome test cases, which use the library, and not
the examples.

The exapmles can be improved to be more readable, so that they better
serve their function of demonstrating library usage, but please stop
mistaking them for test cases sooner rather than later.

Received on 2012-10-22