diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 14:50:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 14:50:00 +0200 |
commit | 4c58f246d400d59d21eb98e8d6b334e0447ebaaa (patch) | |
tree | 4dc1514e61576a755fa3ff2c05dbd984e3e5be59 | |
parent | 39043ad25eda79e315da5148e239730ee1d8d6ca (diff) | |
download | busybox-w32-4c58f246d400d59d21eb98e8d6b334e0447ebaaa.tar.gz busybox-w32-4c58f246d400d59d21eb98e8d6b334e0447ebaaa.tar.bz2 busybox-w32-4c58f246d400d59d21eb98e8d6b334e0447ebaaa.zip |
testsuite/pidof.tests: fix false positive take 2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | testsuite/pidof.tests | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/pidof.tests b/testsuite/pidof.tests index b360a127b..cd10de4e0 100755 --- a/testsuite/pidof.tests +++ b/testsuite/pidof.tests | |||
@@ -24,11 +24,16 @@ testing "pidof -s" "pidof -s init" "1\n" "" "" | |||
24 | SKIP= | 24 | SKIP= |
25 | } | 25 | } |
26 | 26 | ||
27 | test x"`cat /proc/1/comm`" = x"init" && { | ||
27 | optional FEATURE_PIDOF_OMIT FEATURE_PIDOF_SINGLE | 28 | optional FEATURE_PIDOF_OMIT FEATURE_PIDOF_SINGLE |
28 | # This test fails now because process name matching logic has changed, | 29 | # This test fails now because process name matching logic has changed, |
29 | # but new logic is not "wrong" either... see find_pid_by_name.c comments | 30 | # but new logic is not "wrong" either... see find_pid_by_name.c comments |
30 | #testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" "" | 31 | #testing "pidof -o %PPID" "pidof -o %PPID pidof.tests | grep -o -w $$" "" "" "" |
31 | testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" "" | 32 | testing "pidof -o %PPID NOP" "pidof -o %PPID -s init" "1\n" "" "" |
33 | SKIP= | ||
34 | } | ||
35 | |||
36 | optional FEATURE_PIDOF_OMIT | ||
32 | testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" "" | 37 | testing "pidof -o init" "pidof -o 1 init | grep -o -w 1" "" "" "" |
33 | SKIP= | 38 | SKIP= |
34 | 39 | ||