X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-strstr.c;h=d580cad4e720461492fe8c52dad8adadf762e34d;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=d6d6639228c6015cd44a202b3964bd0a24961181;hpb=5bf4ad0bfa91baa20e4f39f47bfb8b4dd00df720;p=gnulib.git diff --git a/tests/test-strstr.c b/tests/test-strstr.c index d6d663922..d580cad4e 100644 --- a/tests/test-strstr.c +++ b/tests/test-strstr.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2007-2011 Free Software Foundation, Inc. + * Copyright (C) 2004, 2007-2014 Free Software Foundation, Inc. * Written by Bruno Haible and Eric Blake * * This program is free software: you can redistribute it and/or modify @@ -37,8 +37,9 @@ main (int argc, char *argv[]) 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. */ + int alarm_value = 50; signal (SIGALRM, SIG_DFL); - alarm (50); + alarm (alarm_value); #endif {