diff options
| author | xel1uz <16402913+xel1uz@users.noreply.github.com> | 2026-11-25 07:06:06 +0100 |
|---|---|---|
| committer | xel1uz <16402913+xel1uz@users.noreply.github.com> | 2026-11-25 07:06:06 +0100 |
| commit | 1ded3b4d8e2939d7cf2ca7ce535917afb440ff69 (patch) | |
| tree | ce9fad199478276da232ce9cdf2f5aeb4da3d778 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 42537e7b6f84c233ac009b924d3a25d2a1178197 (diff) | |
f16misc_diff: reject a zero or negative --max-ops and --programs
A zero --programs ran the sweep and nothing else with exit 0, and a zero --max-ops reached random.randint(1, 0)'s ValueError traceback. Both are now usage errors: --max-ops and --programs must be at least 1, checked right after parsing and before any work, and argparse exits 2 with the message. main() takes argv so the tests can drive it.
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions