File: setenv.t

package info (click to toggle)
inn2 2.5.2-2~squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 11,072 kB
  • ctags: 8,521
  • sloc: ansic: 91,418; sh: 13,249; perl: 12,311; makefile: 2,928; yacc: 868; python: 342; lex: 266
file content (17 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
# $Id: setenv.t 6542 2003-12-26 01:31:26Z rra $
#
# Wrapper around the setenv test suite to set a resource limit low enough
# that two strings over 100KB can't both be allocated, allowing the memory
# allocation failure code in setenv to be exercised.  Done with this
# wrapper because ulimit is more easily portable than the corresponding C
# code.

# Find where the test suite is.
setenv=setenv.tr
for file in ./setenv.tr lib/setenv.tr tests/lib/setenv.tr ; do
    [ -x $file ] && setenv=$file
done

ulimit -d 150
exec $setenv