projects
/
linux-seccomp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2ef1f2
)
Add a test for the library version
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 19 Nov 2016 20:22:24 +0000
(20:22 +0000)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 19 Nov 2016 20:22:24 +0000
(20:22 +0000)
t/Linux-Seccomp.t
patch
|
blob
|
blame
|
history
diff --git
a/t/Linux-Seccomp.t
b/t/Linux-Seccomp.t
index 954b2cce2926b06598e0219b2e60d31a6ab810a8..b42df87deaf4607e6c6429a77545d61412c1f194 100644
(file)
--- 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';
This page took
0.011321 seconds
and
4
git commands to generate.