COPY-on-existing and MOVE-on-existing and Overwrite: F

Peter Makholm peter at makholm.net
Tue Nov 18 07:42:31 EST 2008


Joe Orton <joe at manyfish.co.uk> writes:

> On Tue, Nov 18, 2008 at 10:47:16AM +0100, Peter Makholm wrote:
>> The condition seems to be reversed in both cases if STATUS(412) is the 
>> right status code. In the move case the warning seems to be right even 
>> though the test is wrong, even further confusing the subject.
>
> The unintuitively-named STATUS(412) is non-zero if the status code from 
> the last operation was *not* 412, so the code looks correct.

My error. For some reason I used Failed Dependency in my code instead
of Precondition Failed. Sorry for blaming the test suite.

But besides of STATUS(412) being unintuitively named, isn't one of the
warnings misphrased? The test is the same for move and copy, but one
of the warnings says 'fails with 412' and the other 'should fail with
412'. (And if not misphrased, then at least ambigiously phrased?)


Thanks for you help. Litmus has really been a great help for
developing and testing server code.

//Makholm




More information about the litmus mailing list