cURL / Mailing Lists / curl-library / Single Mail


Re: Ranged downloads on file:// URLs

From: Daniel Stenberg <>
Date: Sat, 29 Dec 2007 22:53:23 +0100 (CET)

On Sat, 29 Dec 2007, Daniel Egger wrote:

> The verify stdout feature automatically adds a linebreak before diffing the
> results which means that I have to somehow add a linebreak into the test
> which is possible but somehow works against the purpose of a testcase that
> tests the range functionality. Any ideas how to do the following without the
> implicitly expected linebreak?
> <verify>
> <stdout>
> 2345
> </stdout>
> </verify>

Yes sure, extend the test suite to allow 'nonewline="yes"' for the <stdout>
part, in the same way it already does for <datacheck> and <protocol> ...

Or do as Dan F suggested: make sure the data has a newline at the correct
point in the test.

  Commercial curl and libcurl Technical Support:
Received on 2007-12-29