9 Commits

Author SHA1 Message Date
Giuseppe Scrivano
a968a26212 tests: add more unit tests for error.c coverage
Add unit tests for error handling functions:
- test_crun_error_wrap: Test error wrapping functionality
- test_crun_error_get_errno: Test errno extraction from errors
- test_libcrun_verbosity: Test verbosity get/set functions
- test_libcrun_set_log_format: Test log format validation
- test_crun_error_release_null: Test NULL handling in error release

These unit tests directly exercise error.c functions for better
coverage without needing to spawn containers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2025-12-22 07:19:08 +00:00
Adrian Reber
4b184254ff Also run clang-format on *.c files in tests/
Signed-off-by: Adrian Reber <areber@redhat.com>
2021-12-01 14:27:37 +00:00
Giuseppe Scrivano
34a0ff3cc9 license: change license to gplv2+ and lgpl2.1+
change the license to GPLv2+ and for libcrun to LGPLv2.1+.

Closes: https://github.com/containers/crun/issues/256

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-02-26 08:04:51 +01:00
Giuseppe Scrivano
57a02dfbc8 src: update copyright years
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2019-01-01 21:29:59 +01:00
Giuseppe Scrivano
e642741988 crun: mass update copyright
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-10-12 11:58:13 +02:00
Giuseppe Scrivano
f47e5783bc error: crun_error_write_warning_and_release resets the error
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-02-12 14:50:21 +01:00
Giuseppe Scrivano
ace67b4b4c errors: change crun_error_write_warning_and_release to accept a ptr
so we can reset the pointer and avoid invalid data accesses.

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-02-12 14:50:21 +01:00
Giuseppe Scrivano
8ef873098b tests: fix copyright project name
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2018-01-27 18:40:22 +01:00
Giuseppe Scrivano
07111be71d tests: add tests for errors
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2017-09-18 17:15:26 +02:00