bug-gnulib
[Top][All Lists]
Advanced

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

Re: test-memmem takes waaay too long


From: Simon Josefsson
Subject: Re: test-memmem takes waaay too long
Date: Fri, 04 Jan 2008 21:29:33 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

It takes a long time on my autobuild machine as well (debian x86
stable).  Running for 14 minutes at 100% CPU and counting.  Does it have
to run the long-running self-tests each time?

/Simon

Ralf Wildenhues <address@hidden> writes:

> Hello, and a Happy New Year,
>
> quoting memmem.m4:
>
>     AC_CACHE_CHECK([whether memmem works], [gl_cv_func_memmem_works],
>       [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <string.h>],
>           [return !memmem ("a", 1, NULL, 0);])],
>         [gl_cv_func_memmem_works=yes], [gl_cv_func_memmem_works=no],
>         [dnl pessimistically assume the worst, since even glibc 2.6.1
>          dnl has quadratic complexity in its memmem
>          gl_cv_func_memmem_works=no])])
>
> This sets gl_cv_func_memmem_works=yes in the non-cross-compiling case,
> tested on GNU/Linux with glibc 2.3.6, which in turn causes the
> test-memmem.c test to take an awful lot of time to complete (I killed
> it after several minutes).  I noticed this with git master M4.
>
> I suggest that either the testsuite test use some time limit (alarm?),
> or the configure test tries to expose the quadratic complexity, or the
> configure test assume `no' on systems where we know libc's memmem to be
> insufficient.
>
> Cheers,
> Ralf




reply via email to

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