[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-9.4.170-7b206 ls/removed-directory test failure
From: |
Bruno Haible |
Subject: |
Re: coreutils-9.4.170-7b206 ls/removed-directory test failure |
Date: |
Tue, 26 Mar 2024 19:25:02 +0100 |
Pádraig Brady wrote:
> > The ls/removed-directory test fails on FreeBSD 14.0.
> >
> > tests-suite.log from FreeBSD 14.0:
> >
> >
> > FAIL: tests/ls/removed-directory
> > ================================
> >
> > diff -u /dev/null err
> > --- /dev/null 1970-01-01
> > +++ err 1970-01-01
> > +ls: reading directory '.': No such file or directory
> > FAIL tests/ls/removed-directory.sh (exit status: 1)
>
> It seems that readdir() on FreeBSD 14 is _not_ eating the ENOENT from
> getdirentries().
> Attached is an extra check for that, that avoids the test in that case.
This patch is not good:
- It skips the test on all platforms that don't have 'python' in $PATH.
(Nowadays more platforms have 'python3'. The old name 'python' is not
present on all platforms that have 'python3'.)
- On FreeBSD 14.0, in an empty directory:
$ python3.9 -c 'import os; os.listdir(".")'
succeeds (exit code 0). In detail:
$ python3.9
>>> import os
>>> os.listdir(".")
[]
Conclusion: The python test does *not* actually test what you meant
to test.
- coreutils-9.4.170-7b206 tail/pipe-f2 test failure, (continued)
- coreutils-9.4.170-7b206 tail/pipe-f2 test failure, Bruno Haible, 2024/03/24
- coreutils-9.4.170-7b206 mv/mv-exchange test failure, Bruno Haible, 2024/03/24
- coreutils-9.4.170-7b206 date/date-debug, date/date-tz test failures, Bruno Haible, 2024/03/24
- coreutils-9.4.170-7b206 ls/removed-directory test failure, Bruno Haible, 2024/03/24
- Re: coreutils-9.4.170-7b206 ls/removed-directory test failure,
Bruno Haible <=
- Re: coreutils-9.4.170-7b206 ls/removed-directory test failure, Pádraig Brady, 2024/03/26
coreutils-9.4.170-7b206 ls/dired test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 chown/preserve-root test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 cp/preserve-mode test failure, Bruno Haible, 2024/03/24
coreutils-9.4.170-7b206 chmod/symlinks test failure, Bruno Haible, 2024/03/24