Fix pkill tests so that they run cleanly with prove.
authorjmmv <jmmv@FreeBSD.org>
Sun, 9 Mar 2014 22:14:20 +0000 (22:14 +0000)
committerjmmv <jmmv@FreeBSD.org>
Sun, 9 Mar 2014 22:14:20 +0000 (22:14 +0000)
commit77fe07fd561ce4ffff35b35d63b40c2625c85052
treee66ff4c74b509e1ed95a55b67b59cabfe31cad7f
parentfd557a3f40020015b930fdbc600d2244e63842ef
Fix pkill tests so that they run cleanly with prove.

This fixes a pgrep test that assumed that PID 2 was named g_event.  This
does not seem to be the case any longer (and I don't know if it ever was
in all possible setups).

Change this test to use the idle loop instead and determine its expected
PID using ps without assuming any specific ID.
tools/regression/usr.bin/pkill/pgrep-_s.t