On Thursday 01 February 2007 04:07, James E Keenan wrote: > IIRC, in order to be able to get full coverage on a branch, I > have to determine whether a file was overwritten or not, which I'm doing > with a comparison of mtimes.
Hm, that's a tricky test to write. You have to dodge questions of process and IO ordering, as well as the granularity of time the filesystem can handle. The last time I wrote a similar test, I used sleep() for a couple of seconds. That may or may not be desirable. -- c
