HomeFreeBSD

tests: add a basic test for argc == 0

Description

tests: add a basic test for argc == 0

The kernel should reject such exec()s now, early on. Instead of adding
the needed boilerplate to write a test in C, just add an -n argument for
"(n)ull argv" to the execve helper and exec this other helper that just
exits silently with argv count.

Reviewed by: emaste, kib, markj (all previous version)
Differential Revision: https://reviews.freebsd.org/D34045

Details

Provenance
kevansAuthored on Jan 26 2022, 1:22 AM
Reviewer
emaste
Differential Revision
D34045: execve: disallow argc == 0
Parents
rG773fa8cd136a: execve: disallow argc == 0
Branches
Unknown
Tags
Unknown