mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-08 17:13:32 +08:00
*** empty log message ***
This commit is contained in:
parent
5579ee544c
commit
0c583dd647
21
tests/tail-2/proc-ksyms
Executable file
21
tests/tail-2/proc-ksyms
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user