diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 14:26:21 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-06-27 14:26:21 +0200 |
commit | 33eae2871072dc078585d7d9b03b1600b5457a5f (patch) | |
tree | 9754e0d276d2f7759e1d286c14b924d8ecc56506 | |
parent | 94593799f7deab90dae163f323f76ca1a987ab03 (diff) | |
download | busybox-w32-33eae2871072dc078585d7d9b03b1600b5457a5f.tar.gz busybox-w32-33eae2871072dc078585d7d9b03b1600b5457a5f.tar.bz2 busybox-w32-33eae2871072dc078585d7d9b03b1600b5457a5f.zip |
testsuite/pidof.tests: fix false positive
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | testsuite/pidof.tests | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/pidof.tests b/testsuite/pidof.tests index 2a06d2b1c..b360a127b 100755 --- a/testsuite/pidof.tests +++ b/testsuite/pidof.tests | |||
@@ -18,9 +18,11 @@ testing "pidof (exit with success)" "pidof pidof > /dev/null; echo \$?" \ | |||
18 | 18 | ||
19 | testing "pidof this" "pidof pidof.tests | grep -o -w $$" "$$\n" "" "" | 19 | testing "pidof this" "pidof pidof.tests | grep -o -w $$" "$$\n" "" "" |
20 | 20 | ||
21 | test x"`cat /proc/1/comm`" = x"init" && { | ||
21 | optional FEATURE_PIDOF_SINGLE | 22 | optional FEATURE_PIDOF_SINGLE |
22 | testing "pidof -s" "pidof -s init" "1\n" "" "" | 23 | testing "pidof -s" "pidof -s init" "1\n" "" "" |
23 | SKIP= | 24 | SKIP= |
25 | } | ||
24 | 26 | ||
25 | optional FEATURE_PIDOF_OMIT FEATURE_PIDOF_SINGLE | 27 | optional FEATURE_PIDOF_OMIT FEATURE_PIDOF_SINGLE |
26 | # This test fails now because process name matching logic has changed, | 28 | # This test fails now because process name matching logic has changed, |