From 8aad713fd0e8c1117cdfda799a7bb2f8c18e3465 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 19 Nov 2016 20:22:24 +0000 Subject: [PATCH] Add a test for the library version --- t/Linux-Seccomp.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'; -- 2.30.2