X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ptsname.c;h=15d4925bae9192fb4f9812926ca717f59d7a9c96;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=d27e7d6643905c4aed9164c06279c76fcb1a5dc9;hpb=68cd59a59fd614b4c3bef80c4d8a822a1662109b;p=gnulib.git diff --git a/tests/test-ptsname.c b/tests/test-ptsname.c index d27e7d664..15d4925ba 100644 --- a/tests/test-ptsname.c +++ b/tests/test-ptsname.c @@ -1,5 +1,5 @@ /* Test of ptsname(3). - Copyright (C) 2010-2012 Free Software Foundation, Inc. + Copyright (C) 2010-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -59,8 +59,9 @@ main (void) #if HAVE_DECL_ALARM /* Declare failure if test takes too long, by using default abort caused by SIGALRM. */ + int alarm_value = 5; signal (SIGALRM, SIG_DFL); - alarm (5); + alarm (alarm_value); #endif {