r27338 - /trunk/dh-make-perl/t/AptContents.t

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Thu Nov 27 08:35:30 UTC 2008


Author: dmn
Date: Thu Nov 27 08:35:27 2008
New Revision: 27338

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27338
Log:
AptContents.t: sleep(1) before touching the Contents files

this allows the clock to tick and the subsequent check for freshness
to give consistent (negative) results

Modified:
    trunk/dh-make-perl/t/AptContents.t

Modified: trunk/dh-make-perl/t/AptContents.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/AptContents.t?rev=27338&op=diff
==============================================================================
--- trunk/dh-make-perl/t/AptContents.t (original)
+++ trunk/dh-make-perl/t/AptContents.t Thu Nov 27 08:35:27 2008
@@ -45,6 +45,7 @@
 
 is( $apt_contents->source, 'cache', 'cache was used' );
 
+sleep(1);   # allow the clock to tick so the timestamp actually differs
 touch( glob "$Bin/contents/*Contents*" );
 
 $apt_contents = AptContents->new(




More information about the Pkg-perl-cvs-commits mailing list