Skip to content

Avoid segfault and add more tests#102

Merged
sgallagher merged 3 commits intomainfrom
better_tests
Dec 2, 2025
Merged

Avoid segfault and add more tests#102
sgallagher merged 3 commits intomainfrom
better_tests

Conversation

@sgallagher
Copy link
Copy Markdown
Owner

Avoid segfault on receiving bad CLI arguments

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

TESTS: verify the exit code of expected failures

Make sure that we are getting the expected error, rather than assuming
that any error results in the test passing. This also makes the meson test output cleaner.

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

TESTS: add a test for malformed arguments

Test that we exit with code 22 if we are not passed expected argument
values.

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Make sure that we are getting the expected error, rather than assuming
that any error results in the test passing. This also makes the `meson
test` output cleaner.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Test that we exit with code 22 if we are not passed expected argument
values.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
@sgallagher sgallagher self-assigned this Dec 2, 2025
@sgallagher sgallagher merged commit 7139a73 into main Dec 2, 2025
43 checks passed
@sgallagher sgallagher deleted the better_tests branch December 2, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant