From 0c583dd6475c620ff43ba238361eff7187ad7e15 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 13 Nov 2001 10:19:09 +0000 Subject: *** empty log message *** --- tests/tail-2/proc-ksyms | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/tail-2/proc-ksyms (limited to 'tests/tail-2/proc-ksyms') diff --git a/tests/tail-2/proc-ksyms b/tests/tail-2/proc-ksyms new file mode 100755 index 000000000..810efd51d --- /dev/null +++ b/tests/tail-2/proc-ksyms @@ -0,0 +1,21 @@ +#!/bin/sh +# `tail /proc/ksyms' would segfault on Linux. + +if test "$VERBOSE" = yes; then + set -x + tail --version +fi + +pwd=`pwd` +tmp=proc-ksyms.$$ +trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap '(exit $?); exit' 1 2 13 15 + +fail=0 + +ksyms=/proc/ksyms +if test -f $ksyms; then + tail $ksyms > /dev/null || fail=1 +fi + +(exit $fail); exit -- cgit v1.2.3-54-g00ecf