m4-patches
[Top][All Lists]
Advanced

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

FYI: try to use tempfile in stackovf.test [m4--devo--1.0--patch-3]


From: Gary V. Vaughan
Subject: FYI: try to use tempfile in stackovf.test [m4--devo--1.0--patch-3]
Date: Wed, 4 May 2005 18:20:17 +0100 (BST)
User-agent: mailnotify/0.6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Applied to HEAD.

  * looking for address@hidden/m4--devo--1.0--patch-2 to compare with
  * comparing to address@hidden/m4--devo--1.0--patch-2
  M  ChangeLog
  M  tests/stackovf.test
  
  * modified files
  
  Index: Changelog
  from  Santiago Vila  <address@hidden>
  
        * tests/stackovf.test: Use tempfile if available.
  
  --- orig/tests/stackovf.test
  +++ mod/tests/stackovf.test
  @@ -1,17 +1,17 @@
   #!/bin/sh
   # This file is part of the GNU m4 testsuite
  -# Copyright 2000 Free Software Foundation, Inc.
  -#  
  +# Copyright (C) 2000, 2003 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
  -# the Free Software Foundation; either version 2 of the License, or 
  +# the Free Software Foundation; either version 2 of the License, or
   # (at your option) any later version.
   #
   # This program is distributed in the hope that it will be useful,
   # but WITHOUT ANY WARRANTY; without even the implied warranty of
   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   # GNU General Public License for more details.
  -# 
  +#
   # You should have received a copy of the GNU General Public License
   # along with this program; if not, write to the Free Software
   # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  @@ -26,8 +26,8 @@
   # On some systems the ulimit command is available in ksh or bash but not sh
   (exec 2>/dev/null; ulimit -HSs 300) || {
       for altshell in bash bsh ksh ; do
  -     if (exec >/dev/null 2>&1; $altshell -c 'ulimit -HSs 300') && 
  -                                                             test -z "$1" 
  +     if (exec >/dev/null 2>&1; $altshell -c 'ulimit -HSs 300') &&
  +                                                             test -z "$1"
        then
                echo "Using $altshell because it supports ulimit"
                exec $altshell $0 running-with-$altshell
  @@ -40,7 +40,7 @@
   : ${M4=../../src/m4}
   type $M4
   
  -tmpfile=/tmp/t.$$
  +tmpfile=`tempfile 2> /dev/null` || tmpfile=/tmp/t.$$
   trap 'rm -f $tmpfile; exit 1' 1 2 3 15
   
   rm -f core
  @@ -64,12 +64,13 @@
        #test -n "$ulimitdashv" && ulimit -HSv 8000
        echo "Stack limit is `ulimit -s`K";
        echo "Heap limit  is `ulimit -d`K";
  -     test -n "$ulimitdashv" && 
  +     test -n "$ulimitdashv" &&
                echo "VMem limit  is `ulimit -v`K";
   else
        echo "Can't reset stack limit - this may take a while..."
   fi
  -strace -o /tmp/aaa $M4 -L999999999 > $tmpfile 2>&1
  +#strace -o /tmp/aaa $M4 -L999999999 > $tmpfile 2>&1
  +$M4 -L999999999 > $tmpfile 2>&1
   )
   result=$?
   { echo "Output from $M4:"; cat $tmpfile; }
  @@ -81,7 +82,7 @@
       # See if stack overflow was diagnosed
       case "`cat $tmpfile`" in
       *overflow*)
  -     echo "Test succeeded."; 
  +     echo "Test succeeded.";
        exitcode=0
        ;;
       *ut*of*emory*|*emory*xhausted)
  
  
  
- -- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 0.9
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCeQRQFRMICSmD1gYRAu/VAJ91CqRT6SS0AobJRUSKSlInexqBhQCeIV4M
xcnVIut1Q9v7qQVWhOMPMbM=
=9Fu0
-----END PGP SIGNATURE-----




reply via email to

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