VirtualBox

source: kBuild/vendor/grep/3.7/gnulib-tests/test-c-stack.sh

Last change on this file was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:executable set to *
File size: 348 bytes
Line 
1#!/bin/sh
2
3tmpfiles=""
4trap 'rm -fr $tmpfiles' 1 2 3 15
5
6tmpfiles="t-c-stack.tmp"
7${CHECKER} ./test-c-stack${EXEEXT} 2> t-c-stack.tmp
8case $? in
9 77) cat t-c-stack.tmp >&2; (exit 77); exit 77 ;;
10 1) ;;
11 *) (exit 1); exit 1 ;;
12esac
13if grep 'stack overflow' t-c-stack.tmp >/dev/null ; then
14 :
15else
16 (exit 1); exit 1
17fi
18
19rm -fr $tmpfiles
20
21exit 0
Note: See TracBrowser for help on using the repository browser.

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