Skip Menu |

This queue is for tickets about the Linux-Fanotify CPAN distribution.

Report information
The Basics
Id: 105259
Status: open
Priority: 0/
Queue: Linux-Fanotify

People
Owner: Nobody in particular
Requestors: martin.von.wittich [...] iserv.eu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.1
Fixed in: (no value)



Subject: Test 03-read-some-events.t always fails on Debian wheezy
The test 03-read-some-events.t always fails on Debian wheezy: dev2.iserv.eu ~ # cpan -t Linux::Fanotify CPAN: File::HomeDir loaded ok (v0.99) CPAN: Storable loaded ok (v2.27) Going to read '/root/.cpan/Metadata' Database was generated on Tue, 16 Jun 2015 08:29:01 GMT CPAN: YAML loaded ok (v0.81) Going to read 2 yaml files from /root/.cpan/build/ CPAN: Time::HiRes loaded ok (v1.972101) DONE Restored the state of none (in 0.0330 secs) CPAN: Module::CoreList loaded ok (v2.49_02) Running test for module 'Linux::Fanotify' Running make for B/BA/BASTIAN/Linux-Fanotify-1.1.tar.gz Has already been unwrapped into directory /root/.cpan/build/Linux-Fanotify-1.1-TtN8Dk CPAN: Parse::CPAN::Meta loaded ok (v1.4401) CPAN: CPAN::Meta loaded ok (v2.110440) Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t .................. ok t/01-init-and-mark.t ......... ok t/02-non-read-nonblocking.t .. ok t/03-read-some-events.t ...... 1/12 # Failed test 'Successfully fanotify_mark()ed target path /root/.cpan/build/Linux-Fanotify-1.1-TtN8Dk/t/testdir/allow' # at t/03-read-some-events.t line 96. # After failed fanotify_mark, errno is Das Argument ist ungültig # Failed test 'Successfully fanotify_mark()ed target path /root/.cpan/build/Linux-Fanotify-1.1-TtN8Dk/t/testdir/deny' # at t/03-read-some-events.t line 103. # After failed fanotify_mark, errno is Das Argument ist ungültig t/03-read-some-events.t ...... Failed 10/12 subtests Test Summary Report ------------------- t/03-read-some-events.t (Wstat: 14 Tests: 4 Failed: 2) Failed tests: 3-4 Non-zero wait status: 14 Parse errors: Bad plan. You planned 12 tests but ran 4. Files=4, Tests=12, 30 wallclock secs ( 0.02 usr 0.02 sys + 0.06 cusr 0.02 csys = 0.12 CPU) Result: FAIL Failed 1/4 test programs. 2/12 subtests failed. make: *** [test_dynamic] Fehler 255 BASTIAN/Linux-Fanotify-1.1.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports BASTIAN/Linux-Fanotify-1.1.tar.gz The reason for this is that the test uses the FAN_OPEN_PERM flag which requires that the kernel has been built with the CONFIG_FANOTIFY_ACCESS_PERMISSIONS option. In Debian wheezy, this is not the case: dev2.iserv.eu ~ # grep CONFIG_FANOTIFY /boot/config-3.14-0.bpo.2-amd64 CONFIG_FANOTIFY=y # CONFIG_FANOTIFY_ACCESS_PERMISSIONS is not set Without this option, fanotify_mark always returns EINVAL when using one of the _PERM flags. dev2.iserv.eu ~ # perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for i486-linux-gnu-thread-multi-64int (with 89 registered patches, see perl -V for more detail) Copyright 1987-2011, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. dev2.iserv.eu ~ # uname -a Linux iserv.dev2.iserv.eu 3.14-0.bpo.2-amd64 #1 SMP Debian 3.14.15-2~bpo70+1 (2014-08-21) x86_64 GNU/Linux dev2.iserv.eu ~ # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.8 (wheezy) Release: 7.8 Codename: wheezy
Subject: Re: [rt.cpan.org #105259] Test 03-read-some-events.t always fails on Debian wheezy
Date: Tue, 04 Aug 2015 16:48:13 +0200
To: bug-Linux-Fanotify [...] rt.cpan.org
From: Bastian Friedrich <BASTIAN [...] cpan.org>
Hi Martin, On Tuesday 16 June 2015 06:00:09 you wrote: Show quoted text
> > The test 03-read-some-events.t always fails on Debian wheezy: >
[...] Show quoted text
> > The reason for this is that the test uses the FAN_OPEN_PERM flag which > requires that the kernel has been built with the > CONFIG_FANOTIFY_ACCESS_PERMISSIONS option. In Debian wheezy, this is not > the case:
thanks for your detailed report, and sorry for not reacting any earlier. I was offline for private reasons for some time. I just commited Linux::Fanotify 1.1.1 to github and cpan which should detect your system's fanotify kernel configuration by checking /proc/config.gz (which unfortunately does not exist on debian wheezy either. Argh) or /boot/config-`uname-r` Thx again Bastian