Commit Graph

4 Commits

Author SHA1 Message Date
Elliott Hughes
5d2619774e Basic success/failure return from pgrep/pkill.
The man page says they also return 2 for syntax errors and 3 for "fatal
error: out of memory etc", but I don't know how to implement that and
don't need it (or have any reason to believe anyone needs it).

Bug: 29092208
2016-06-04 16:57:18 -05:00
Elliott Hughes
e2ea4fc86b Fix remaining pkill tests.
I don't know that anyone cares, but these failures made me think I'd
broken something while testing the -SIGNAL patch.

The -s parsing wasn't taking into account that -s 0 is a special case,
and the -o test was assuming that pkill can tell the difference between
two processes started at roughly the same time. Hopefully there's
higher-resolution data available that can avoid the need for yet another
sleep in the tests.
2016-05-23 18:27:13 -05:00
Rob Landley
336c44adca Factor out command name at the start of test name, have runtest.sh print it. 2016-03-02 15:20:04 -06:00
Rob Landley
7ae108f7c9 split pgrep/pkill tests. 2016-03-02 13:46:52 -06:00