[git commit] testsuite/pidof.tests: fix false positive

Denys Vlasenko vda.linux at googlemail.com
Wed Jun 27 12:26:21 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=33eae2871072dc078585d7d9b03b1600b5457a5f
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/pidof.tests | 2 ++
 1 file changed, 2 insertions(+)

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 \$?" \
 
 testing "pidof this" "pidof pidof.tests | grep -o -w $$" "$$\n" "" ""
 
+test x"`cat /proc/1/comm`" = x"init" && {
 optional FEATURE_PIDOF_SINGLE
 testing "pidof -s" "pidof -s init" "1\n" "" ""
 SKIP=
+}
 
 optional FEATURE_PIDOF_OMIT FEATURE_PIDOF_SINGLE
 # This test fails now because process name matching logic has changed,


More information about the busybox-cvs mailing list