Re: [PATCH v2 4/4] sysctl: Add 0013 to test partially updated vectors
Joel Granados <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.file-systems,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <iahrpgl333k2cniihxiv4qbkgtalxmhn47gyzrq2xd7jshxbtd@cniqn2gdnqfw> |
On Sat, Aug 15, 2026 at 05:05:59PM +0100, Bradley Morgan wrote: > The test covers the parse error, the out of range value and the > first value failing. That's the right coverage. > > The shellcheck disable should say why. The test functions are only > called through the dispatch string, so shellcheck thinks they are > unreachable. I expect to remove this in the new sysctl selftests. > > run_int_array_no_partial_update() uses spaces for its comment lines > while the code uses tabs. good catch > > reset_vals() has no case for int_0003, so sysctl_test_0013 calls it > for nothing. Drop the call or add a case for int_0003. The TARGET is reset to "". right? I'm reluctant to do more work on the sysctl.sh file as everything will probably be replaced. Thx Best > > Nits aside, the test does what it should: > > Reviewed-by: Bradley Morgan <[email protected]> > Thanks!
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmqDEoQACgkQupfNUreW QU9kAwv9G9oMHDJ+90hHFBoMUPnpGpgP+V/sRCaP8YhJBX+tnl+p82nNXfffddrL WmT9wH0JuPPRHSN3ZedgAe/+gWUez2DAUDK7ShH6QlTRzvitfW3Bi4g7A+KcgbAL nykswCVYLvRPVIRBGdJMniG/25lwhBR+KrsZY2nx3YDw0BNTavSTCPrVId1FVJ8C eOJw5QWyR5dIQR1gamOHqx+kF+p6Py3iS64LXB+2RrGLR6eRY1ge4HsG29/0q6I9 N89xYCLv4YAQroZOWzQyzTbbtdSXcYx4+If2bh8GUy/+qifSVQIQ5TBtrUpWuOaW dVNDas3p8WRcAR5/89DxGdBxlMFPahyt+Xs3xxuXOtreEn5nHPf3naLBAq8TD8Wk 76kNx7YyZfPzi7wIGWhwtxMz/0/9muPVNNlQEHRKRJJknkjOyJxzWrmdL1ygovtC f0ssEfZ4ZEn98LWDUaH5bwls8TPbTps+qrqv0+zdvJnwPhzXg6ken77xYQ22+wva N2yP77lJ =t+L1 -----END PGP SIGNATURE-----