tests: update test for linux kernel version

* tests/ptrace_setoptions_followfork: Check for Linux kernel > 2.6.
This commit is contained in:
Дмитрий Левин 2011-06-09 18:23:09 +00:00
parent e254e53d8c
commit 30ecdcc121

View File

@ -4,9 +4,11 @@
. "${srcdir=.}/init.sh"
case "$(uname -rs)" in
Linux\ 2.6.*) ;;
*) skip_ 'The kernel is not Linux 2.6.*' ;;
[ "$(uname -s)" = Linux ] ||
skip_ 'The kernel is not a Linux kernel'
case "$(uname -r)" in
2.[6-9]*|2.[1-5][0-9]*|[3-9].*|[12][0-9]*) ;;
*) skip_ 'The kernel is not Linux 2.6.* or newer' ;;
esac
check_strace