bug-gnulib
[Top][All Lists]
Advanced

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

Re: MacOS problem with "checking whether strcasestr works in linear time


From: Bruno Haible
Subject: Re: MacOS problem with "checking whether strcasestr works in linear time"
Date: Tue, 10 Jun 2008 12:13:54 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> Go ahead and make the change if you feel better about it that way.

Thanks. Yes, it feels safer this way. Applied:


2008-06-10  Bruno Haible  <address@hidden>

        * tests/test-memmem.c (main): Reset SIGALRM to default handling before
        using alarm().
        * tests/test-strcasestr.c (main): Likewise.
        * tests/test-strstr.c (main): Likewise.

*** tests/test-memmem.c.orig    2008-06-10 12:11:28.000000000 +0200
--- tests/test-memmem.c 2008-06-10 12:10:00.000000000 +0200
***************
*** 43,48 ****
--- 43,49 ----
       caused by SIGALRM.  All known platforms that lack alarm also lack
       memmem, and the replacement memmem is known to not take too
       long.  */
+   signal (SIGALRM, SIG_DFL);
    alarm (100);
  #endif
  
*** tests/test-strcasestr.c.orig        2008-06-10 12:11:28.000000000 +0200
--- tests/test-strcasestr.c     2008-06-10 12:10:00.000000000 +0200
***************
*** 44,49 ****
--- 44,50 ----
       caused by SIGALRM.  All known platforms that lack alarm also lack
       memmem, and the replacement memmem is known to not take too
       long.  */
+   signal (SIGALRM, SIG_DFL);
    alarm (50);
  #endif
  
*** tests/test-strstr.c.orig    2008-06-10 12:11:28.000000000 +0200
--- tests/test-strstr.c 2008-06-10 12:10:00.000000000 +0200
***************
*** 43,48 ****
--- 43,49 ----
       caused by SIGALRM.  All known platforms that lack alarm also have
       a quadratic strstr, and the replacement strstr is known to not
       take too long.  */
+   signal (SIGALRM, SIG_DFL);
    alarm (50);
  #endif
  





reply via email to

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