Control: reassign -1 faketime Hi. Thanks very much for your investigation.
Olly Betts writes ("Re: Bug#1093153: xapian-omega autopkgtests and faketime on 32-bit"): > On Wed, Jan 15, 2025 at 07:29:54PM +0000, Ian Jackson wrote: > > 40s expected: «Query((Y2000 ... Y2014 OR M201501 ... > > 40s received: «Query((Y2000 ... Y2024 OR D20250101 ... > > Based on the output, it looks to me like faketime isn't affecting > the return value of time(NULL), and testing on amdahhl in an armel > chroot this indeed seems to be the case: > > (sid_armel-dchroot)olly@amdahl:~$ cat now.c > #include <stdio.h> > #include <time.h> > int main() { printf("%ld\n", (long)time(NULL)); return 0; } > (sid_armel-dchroot)olly@amdahl:~$ gcc `dpkg-buildflags --get CPPFLAGS` now.c > (sid_armel-dchroot)olly@amdahl:~$ ./a.out > 1736980314 > (sid_armel-dchroot)olly@amdahl:~$ faketime '1971-01-01' ./a.out > 1736980326 Gosh. > I think faketime() with broken support for faking time() shouldn't be > allowed to migrate to testing though, at which point a more complex > check here doesn't seem to be necessary. Yes. I will see if I can fix it. Ian. -- Ian Jackson <ijack...@chiark.greenend.org.uk> These opinions are my own. Pronouns: they/he. If I emailed you from @fyvzl.net or @evade.org.uk, that is a private address which bypasses my fierce spamfilter.