From: Marius Gavrilescu Date: Sat, 19 Nov 2016 20:22:24 +0000 (+0000) Subject: Add a test for the library version X-Git-Tag: 0.002~2 X-Git-Url: http://git.ieval.ro/?p=linux-seccomp.git;a=commitdiff_plain;h=8aad713fd0e8c1117cdfda799a7bb2f8c18e3465 Add a test for the library version --- 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';