]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Tue, 13 Nov 2001 10:19:09 +0000 (10:19 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 Nov 2001 10:19:09 +0000 (10:19 +0000)
tests/tail-2/proc-ksyms [new file with mode: 0755]

diff --git a/tests/tail-2/proc-ksyms b/tests/tail-2/proc-ksyms
new file mode 100755 (executable)
index 0000000..810efd5
--- /dev/null
@@ -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