VirtualBox

Ignore:
Timestamp:
Oct 28, 2008 11:02:45 PM (16 years ago)
Author:
bird
Message:

Load gnumake-2008-10-28-CVS into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/tests/run_make_tests.pl

    r900 r1989  
    1313
    1414# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
    15 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     15# 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
    1616# This file is part of GNU Make.
    1717#
    18 # GNU Make is free software; you can redistribute it and/or modify it under the
    19 # terms of the GNU General Public License as published by the Free Software
    20 # Foundation; either version 2, or (at your option) any later version.
     18# GNU Make is free software; you can redistribute it and/or modify it under
     19# the terms of the GNU General Public License as published by the Free Software
     20# Foundation; either version 3 of the License, or (at your option) any later
     21# version.
    2122#
    2223# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
    23 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
    24 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     24# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     25# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
     26# details.
    2527#
    2628# You should have received a copy of the GNU General Public License along with
    27 # GNU Make; see the file COPYING.  If not, write to the Free Software
    28 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     29# this program.  If not, see <http://www.gnu.org/licenses/>.
    2930
    3031$valgrind = 0;              # invoke make with valgrind
     
    8283sub run_make_test
    8384{
    84   local ($makestring, $options, $answer, $err_code) = @_;
     85  local ($makestring, $options, $answer, $err_code, $timeout) = @_;
    8586
    8687  # If the user specified a makefile string, create a new makefile to contain
     
    121122  $answer =~ s/#PWD#/$pwd/g;
    122123
    123   &run_make_with_options($makefile, $options, &get_logfile(0), $err_code);
     124  run_make_with_options($makefile, $options, &get_logfile(0),
     125                        $err_code, $timeout);
    124126  &compare_output($answer, &get_logfile(1));
    125127
     
    130132# The old-fashioned way...
    131133sub run_make_with_options {
    132   local ($filename,$options,$logname,$expected_code) = @_;
     134  local ($filename,$options,$logname,$expected_code,$timeout) = @_;
    133135  local($code);
    134136  local($command) = $make_path;
     
    151153  }
    152154
    153   $code = &run_command_with_output($logname,$command);
     155
     156  {
     157      my $old_timeout = $test_timeout;
     158      $test_timeout = $timeout if $timeout;
     159
     160      $code = &run_command_with_output($logname,$command);
     161
     162      $test_timeout = $old_timeout;
     163  }
    154164
    155165  # Check to see if we have Purify errors.  If so, keep the logfile.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette