X-Git-Url: http://git.ieval.ro/?p=linux-seccomp.git;a=blobdiff_plain;f=t%2FLinux-Seccomp.t;h=b42df87deaf4607e6c6429a77545d61412c1f194;hp=954b2cce2926b06598e0219b2e60d31a6ab810a8;hb=8aad713fd0e8c1117cdfda799a7bb2f8c18e3465;hpb=e2ef1f21e2626aa4e019f1398b53f533b80bbc97 diff --git a/t/Linux-Seccomp.t b/t/Linux-Seccomp.t index 954b2cc..b42df87 100644 --- a/t/Linux-Seccomp.t +++ b/t/Linux-Seccomp.t @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 3; +use Test::More tests => 4; BEGIN { use_ok('Linux::Seccomp', ':all') }; @@ -130,5 +130,7 @@ my $ctx = Linux::Seccomp->new(SCMP_ACT_ALLOW); $ctx->rule_add(SCMP_ACT_TRAP, syscall_resolve_name('mkdir')); $ctx->load; +is_deeply version, [2, 3, 1], 'library version is 2.3.1'; + mkdir 'testdir'; ok $got_sigsys, 'filter with SCMP_ACT_TRAP on mkdir() works';