]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: check /proc availability, and go-around if it is incomplete
authorSami Kerola <kerolasa@iki.fi>
Sun, 11 May 2014 19:26:38 +0000 (20:26 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 May 2014 11:02:52 +0000 (13:02 +0200)
commit1e29f37dde7f15183837a1542958946f9716a1fc
tree0e34b71d861b16512d92530c65bcb087d1127d37
parent8e3ac29e8b7a8cc0f5ae475911d0b3d5b32e2a8e
tests: check /proc availability, and go-around if it is incomplete

Unavailability of /proc is fatal for kill, and continuing with the test
in that case does not make sense as it will only mean false positive
errors.

Where /proc/<pid>/status file(s) does not exist the check will perform
opportunistic sleep with assumption the test_sigreceive will be ready to
be killed if it has some time to init.

[kzak@redhat.com: - remove dependence on gawk, just use shell
                  - fix typo in "test /proc"]

CC: Ruediger Meier <sweet_f_a@gmx.de>
Reference: https://travis-ci.org/rudimeier/util-linux/jobs/24561058
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/kill/kill_functions.sh