]> git.feebdaed.xyz Git - 0xmirror/crun.git/commit
tests: add seccomp_notify unit tests for coverage
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 19 Dec 2025 17:41:43 +0000 (17:41 +0000)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Mon, 22 Dec 2025 07:22:13 +0000 (07:22 +0000)
commit87997df077986f72349f7c0adaf8d5ebe86548b2
tree18be95c35479fa0dd5b4c4acaf6de969fc70ed15
parent890fff109eca0fac313913d14d2733870ed3c535
tests: add seccomp_notify unit tests for coverage

Add unit tests for seccomp_notify.c to improve code coverage:
- test_cleanup_null: Test cleanup handler with NULL
- test_free_null_context: Test freeing NULL context
- test_load_invalid_path: Test loading plugin with invalid relative path
- test_load_nonexistent_plugin: Test loading non-existent plugin
- test_notify_no_seccomp: Test notify function without seccomp support

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

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Makefile.am
tests/tests_libcrun_seccomp_notify.c [new file with mode: 0644]