]> granicus.if.org Git - procps-ng/commitdiff
testsuite: kill test fails on signal names
authorCraig Small <csmall@enc.com.au>
Sun, 3 Jan 2016 07:20:45 +0000 (18:20 +1100)
committerCraig Small <csmall@enc.com.au>
Sun, 3 Jan 2016 07:20:45 +0000 (18:20 +1100)
Some archs have + and - in their signal names, such as hppa
which comes with signals such as RTMIN+-9 RTMIN+-8
The kill -l test failed because of this, we now accept these
odd names.

References:
 https://bugs.debian.org/762764
 https://buildd.debian.org/status/fetch.php?pkg=procps&arch=hppa&ver=1%3A3.3.10-1&stamp=1411601407

testsuite/kill.test/kill.exp

index bed50a8f1fd6f4f7eaea99a3b93b428d1627ff3f..1668ac4f3676f8b8e2f91c7803adeeb9c2df5776 100644 (file)
@@ -14,11 +14,11 @@ expect_pass "$test" "Usage:\\s+\(lt-\)?kill \\\[options\\\] <pid> \\\[...\\\]\\s
 
 set test "kill list signal names"
 spawn $kill -l
-expect_pass "$test" "^\(\[A-Z12\]\\s*\)+$"
+expect_pass "$test" "^\(\[A-Z12+-\]\\s*\)+$"
 
 set test "kill list signal names in table"
 spawn $kill -L
-expect_pass "$test" "^\(\\s+\\d+ \[A-Z12\]+\)+\\s*$"
+expect_pass "$test" "^\(\\s+\\d+ \[A-Z12+-\]+\)+\\s*$"
 
 set test "kill convert signal name to number"
 spawn  $kill -lHUP