Skip to content

cz-14gzopen.t fails on AFS filesystem #56

Description

@djzhh

Test fails for perl-5.36.3 and perl-5.38.2 (no other versions tested) when compiling in an AFS-part of the filesystem.
Compiling in e.g. /var/tmp works fine, though. ./Configure detects that the sources reside in AFS: AFS may be running... I'll be extra cautious then...

The errors detected are:

cpan/IO-Compress/t/cz-14gzopen ................................... #   Failed test '  gzopen returns undef'
#   at t/cz-14gzopen.t line 506.
#   Failed test '  gzerrno ok'
#   at t/cz-14gzopen.t line 507.
#  gzerrno 0
#   Failed test '  gzopen returns undef'
#   at t/cz-14gzopen.t line 528.
#   Failed test '  gzerrno ok'
#   at t/cz-14gzopen.t line 529.
# Looks like you failed 4 tests of 264.
FAILED at test 182

They correspond directly to tests using chmod (line numbers at the beginning):

    488     title 'read/write a non-readable/writable file';
...
    497         chmod 0444, $name
...
    506         ok !$fil, "  gzopen returns undef" ;
    507         ok $gzerrno, "  gzerrno ok" or
...

    520         chmod 0222, $name ;
...
    528         ok !$fil, "  gzopen returns undef" ;
    529         ok $gzerrno, "  gzerrno ok";

The tests must fail as there is no such thing as file-based ACLs in AFS; see https://docs.openafs.org/UserGuide/HDRWQ46.html

I assume that these tests should be skipped when compiled in an AFS-directory as a workaround.

Just for completeness:

% pwd
/afs/CELL/user/X/XXXXX

% /usr/bin/fs  version
auristor 2021.05
  Platform:
    osname=linux
    osvers=5.14.0-362.13.1.el9_3.x86_64
    archname=x86_64-linux
    uname='linux SOME-HOST.XXX.XXX 5.14.0-362.13.1.el9_3.x86_64 #1 smp preempt_dynamic thu dec 21 07:12:43 est 2023 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Dafs=true'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='11.4.1 20230605 (Red Hat 11.4.1-2)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /usr/lib64 /usr/local/lib64
    libs=-lpthread -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
    libc=/lib/../lib64/libc.so.6
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.34'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions