summaryrefslogtreecommitdiffstats
path: root/tests/ts/kill
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix TS_ENABLE_ASAN usageKarel Zak2019-04-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use TS_ENABLE_ASAN in tests to detect ASANKarel Zak2019-04-171-1/+1
| | | | | | It seems better to not use any random ASAN variable. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (kill) do not use shell build-inKarel Zak2019-03-045-0/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: always kill helperRuediger Meier2015-06-161-7/+7
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix kill/all_processesRuediger Meier2015-05-081-0/+3
| | | | | | We have to wait for the killed helper. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: skip kill -SEGV test when running AddressSanitizerSami Kerola2014-11-181-0/+3
| | | | | | | Sending signal indicating invalid memory reference makes AddressSanitizer to report false positive test failure. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add kill --queue checkSami Kerola2014-07-152-2/+53
| | | | | | | | | | | | Correction. The final failure to catch signal exit should not use exiter() function. --->8---- From: Sami Kerola <kerolasa@iki.fi> Date: Mon, 14 Jul 2014 18:35:56 +0100 Subject: [PATCH] tests: add kill --queue check Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* kill: use --queue option argument as sigval integer valueSami Kerola2014-07-141-2/+2
| | | | | | | | | | | | | The sigqueue(3) takes two values, signal and sigval. Contents of the signal can be altered with --signal option argument, so the --queue argument should be reserved to affect sigval_int. This is regression fix introduced by commit 9e8dffd5cd29f03029b1ac99eecb129532ca5c0f. Reference: http://man7.org/linux/man-pages/man3/sigqueue.3.html Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check /proc availability, and go-around if it is incompleteSami Kerola2014-05-121-13/+17
| | | | | | | | | | | | | | | | | | 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: fix kill problemsRuediger Meier2014-05-064-12/+14
| | | | | | | | | | | | | There were several failures (missing tmp files, missing pids) on travis build farm which I couldn't track down completely. Here we fix some possible issues: - mktemp -u is unsafe, maybe even in practice if there is a bad random generator - make sure that mktemp does not give us pure integer filnames which would not work for "kill by-name" - avoid using trap, could be that it removed tmp files on wrong signals Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: kill_functions.sh needs gawk (skip if sourced)Ruediger Meier2014-05-061-1/+4
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add kill_functions.sh to avoid duplicate codeKarel Zak2014-04-285-65/+43Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check kill all user processesSami Kerola2014-04-261-0/+66
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check kill print pid optionSami Kerola2014-04-261-0/+69
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check various ways to specify kill signalSami Kerola2014-04-261-0/+77
| | | | | CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check kill is converting signals names correctlySami Kerola2014-04-261-0/+74
CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>