diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2023-03-20 19:19:35 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2023-04-09 22:49:52 +0000 |
commit | df42ae6d99acfeae81572077078baee07d653313 (patch) | |
tree | 299f15e66647092fbfd4d0fdcde78f7e23d106b6 /bin/pkill/tests/Makefile | |
parent | 2a69943c7b653dced1217fbfe74cd68019d19c18 (diff) |
pkill: use an ARG_MAX size buffer for argument matching
Right now pkill/pgrep cut off at _POSIX2_LINE_MAX (2048), but argument
strings can be much larger (ARG_MAX is 256K/512K). Stop arbitrarily
cutting the search off at 2K, rather than documenting the limit.
Reviewed by: allanjude (earlier version), des
Sponsored by: Klara, Inc.
(cherry picked from commit 3610bffd2888b65389a46e8d075ce8e1fc83af4c)
Diffstat (limited to 'bin/pkill/tests/Makefile')
-rw-r--r-- | bin/pkill/tests/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pkill/tests/Makefile b/bin/pkill/tests/Makefile index be467074651f..9bf448bb2460 100644 --- a/bin/pkill/tests/Makefile +++ b/bin/pkill/tests/Makefile @@ -2,6 +2,11 @@ .include <bsd.own.mk> +PACKAGE= tests + +PROGS+= spin_helper +BINDIR= ${TESTSDIR} + TAP_TESTS_SH= pgrep-F_test TAP_TESTS_SH+= pgrep-LF_test TAP_TESTS_SH+= pgrep-P_test @@ -10,6 +15,7 @@ TAP_TESTS_SH+= pgrep-_g_test TAP_TESTS_SH+= pgrep-_s_test TAP_TESTS_SH+= pgrep-g_test TAP_TESTS_SH+= pgrep-i_test +TAP_TESTS_SH+= pgrep-f_test TAP_TESTS_SH+= pgrep-j_test TEST_METADATA.pgrep-j_test+= required_user="root" TEST_METADATA.pgrep-j_test+= required_programs="jail jls" |