upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authorxel1uz <16402913+xel1uz@users.noreply.github.com>2026-11-25 07:06:06 +0100
committerxel1uz <16402913+xel1uz@users.noreply.github.com>2026-11-25 07:06:06 +0100
commit1ded3b4d8e2939d7cf2ca7ce535917afb440ff69 (patch)
treece9fad199478276da232ce9cdf2f5aeb4da3d778 /runtime/test/cpp_unwind_test.cpp
parent42537e7b6f84c233ac009b924d3a25d2a1178197 (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/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions