]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: improve setarch tests, regarding --uname-2.6 issues
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 22 Mar 2016 09:06:22 +0000 (10:06 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 24 Mar 2016 07:14:34 +0000 (08:14 +0100)
commit33bed90a7fd5567d15e6319fef9e2f3c69673f76
treed797229f18123ef5366618a4967ed728e917289e
parent9508e2972b1fdfca81e95ad7c2310991695009b5
tests: improve setarch tests, regarding --uname-2.6 issues

Add some more tests:
  * error handling "unknown arch" and "unknown command"
  * "noop" test with host arch and no other options
  * all options except --uname-2.6
  * --uname-2.6 whithout any other options but handle fatal
    glibc error "kernel too old" (with debug output)
  * add a "real" --uname-2.6 test which validates uname(1)
    output

Note the "kernel too old" cases are systems where glibc was
configured to support only kernels > 3.0. On some archs
(e.g. x86) --uname-2.6 still works with such glibc because
2.6.39 had all needed features on board (e.g. vdso).
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806911

Some people reported segfaults (after execvp) but I can only
reproduce it on arm* and aarch64 qemu-user-space builds. We
don't need to fix our tests for such broken systems where
also many other tests fail currently.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/expected/misc/setarch-options [moved from tests/expected/misc/setarch with 54% similarity]
tests/expected/misc/setarch-uname26 [new file with mode: 0644]
tests/expected/misc/setarch-uname26-version [new file with mode: 0644]
tests/ts/misc/setarch