bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib support for st_birthtime


From: Bruno Haible
Subject: Re: gnulib support for st_birthtime
Date: Sun, 25 Mar 2007 19:36:33 +0200
User-agent: KMail/1.5.4

James Youngman wrote:
> this is a change which I cannot test since I
> have no Woe32 system.  I will push the change into findutils (instead
> of using it indirectly in gnulib) and test it there for a bit.

On the contrary, pushing the change into gnulib will make testing easier:
If you provide a unit test, I can do "./gnulib-tool --create-testdir ..."
and test it on the mingw machine I have access to; other people here on
this list have access to Cygwin, Solaris and other machines.

A unit test can basically do the following:
   echo > stamp1
   sleep 2
   echo > testfile
   sleep 2
   echo > stamp2
   sleep 2
   mv testfile renamed
   sleep 2
   echo > stamp3
and then verify that
   mtime(stamp1) < birthtime(renamed) < mtime(stamp2) < ctime(renamed) < 
mtime(stamp3).

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]