bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW


From: Eli Zaretskii
Subject: Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW
Date: Sat, 20 Dec 2014 10:37:30 +0200

> From: Tim Ruehsen <address@hidden>
> Date: Fri, 19 Dec 2014 12:53:13 +0100
> 
> > 4. "make check" fails to link test programs, such as unit-tests.exe,
> >    because it doesn't link against libintl.  Again, not sure how best
> >    to fix that (wget itself does get linked against libintl and
> >    libiconv).
> 
> Dunno.

Btw, I encountered a similar problem building wget on GNU/Linux,
except that in that case what was missing was -lrt, without which
clock_gettime and friends cannot be resolved.  So there seems to be
some general problem here.

> > Btw, to debug the Test-N issue, I had to add the time stamps being
> > compared to the Perl script that runs the test.  It would be nice to
> > have that in the tests by default, because just by looking at the time
> > stamps, one can immediately understand in what direction to look for
> > the problem (in my case I saw a difference of 3600 sec).
> 
> Since I am not 100% sure what you are talking about and you already extended 
> the (or a) Test-N, please send us diff/patch.

Here it is:

--- tests/WgetTests.pm~ 2014-11-01 23:07:48.000000000 +0200
+++ tests/WgetTests.pm  2014-12-20 10:34:05.920875000 +0200
@@ -319,7 +319,7 @@ sub _verify_download
               = stat $filename;
 
             $mtime == $filedata->{'timestamp'}
-              or return "Test failed: wrong timestamp for file $filename\n";
+              or return "Test failed: wrong timestamp for file $filename: 
expected = $filedata->{'timestamp'}, actual = $mtime\n";
         }
 
     }



reply via email to

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