freebsd-skq/tools/regression/usr.bin/pkill
yar af6cce5172 Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
2006-11-23 11:55:17 +00:00
..
pgrep-F.t
pgrep-g.t
pgrep-G.t
pgrep-i.t
pgrep-j.t Fix and extend the -j option to pkill/pgrep WRT the jail 2006-11-23 11:55:17 +00:00
pgrep-l.t
pgrep-LF.t Add regression tests for '-L' option. 2005-08-25 20:13:58 +00:00
pgrep-n.t
pgrep-o.t
pgrep-P.t
pgrep-s.t
pgrep-S.t
pgrep-t.t Add tests for -t option with short tty name - pkill(1) should accept both 2005-11-07 16:56:16 +00:00
pgrep-U.t
pgrep-v.t
pgrep-x.t
pkill-F.t
pkill-g.t
pkill-G.t
pkill-i.t
pkill-j.t Fix and extend the -j option to pkill/pgrep WRT the jail 2006-11-23 11:55:17 +00:00
pkill-LF.t Add regression tests for '-L' option. 2005-08-25 20:13:58 +00:00
pkill-P.t
pkill-s.t
pkill-t.t Add tests for -t option with short tty name - pkill(1) should accept both 2005-11-07 16:56:16 +00:00
pkill-U.t
pkill-x.t