[Midnightbsd-cvs] [MidnightBSD/src] e6a126: batt: harden sysctl handling and add tests

Lucas Holt noreply at github.com
Tue Apr 21 00:33:10 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: e6a126384368fef0175a15a4dab97a6c640fd8b8
      https://github.com/MidnightBSD/src/commit/e6a126384368fef0175a15a4dab97a6c640fd8b8
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-04-21 (Tue, 21 Apr 2026)

  Changed paths:
    M usr.bin/batt/Makefile
    M usr.bin/batt/batt.c
    A usr.bin/batt/tests/Makefile
    A usr.bin/batt/tests/batt_test.c

  Log Message:
  -----------
  batt: harden sysctl handling and add tests

Reject stray positional arguments, validate sysctl result sizes, and add Kyua coverage for the updated behavior.

AI-Assisted-by: OpenAI Codex (GPT-5)
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list