Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/tests/lib/libutil



"David A. Holland" <dholland%netbsd.org@localhost> writes:

> Module Name:	src
> Committed By:	dholland
> Date:		Thu Dec 31 10:18:00 UTC 2015
>
> Modified Files:
> 	src/tests/lib/libutil: t_parsedate.c
>
> Log Message:
> When evaluated on a Sunday, "next Sunday" means 7 days in the future,
> not 14. When evaluated on a Monday, it apparently means 13 days in the
> future. There's not exactly a spec for parsedate.y, so conform to the
> implementation.
>
> PR 50574.
>
> XXX: to me at least this is an odd notion of "next Sunday", but whatever...

It's clearly a bug.

On a Monday, "next Sunday" is 6 days away.  "Sunday week" is 13.

So perhaps the test should be correct, and the implementation fixed.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index