[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix some failing tests in BSD systems
From: |
Daniel Martín |
Subject: |
[PATCH] Fix some failing tests in BSD systems |
Date: |
Sun, 03 Jan 2021 18:16:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
A couple of tests are failing for me on master and a BSD system (macOS):
2 unexpected results:
FAILED xref--xref-file-name-display-is-abs
FAILED xref--xref-file-name-display-is-relative-to-project-root
An extract of a test failure is
(list-elt 0 (arrays-of-different-length 25 24
"xref-resources//file1.txt" "xref-resources/file1.txt" first-mismatch-at
15))
The reason for the failure is that BSD 'find' sometimes outputs paths
with an extra '/', for example:
find /path/emacs/test/lisp/progmodes/xref-resources/ -type f \( -iname \* \)
/path/emacs/test/lisp/progmodes/xref-resources//file2.txt
/path/emacs/test/lisp/progmodes/xref-resources//file1.txt
(Note the trailing '/' in the first argument to 'find'.)
As I think this differs from GNU find but it's still a valid POSIX path,
I decided to make the tests more flexible.
Could you install the attached patch if you think it does TRT?
Thanks.
0001-Fix-some-xref-tests-for-systems-with-BSD-find.patch
Description: Text Data
- [PATCH] Fix some failing tests in BSD systems,
Daniel Martín <=
- Re: [PATCH] Fix some failing tests in BSD systems, Eli Zaretskii, 2021/01/03
- Re: [PATCH] Fix some failing tests in BSD systems, Daniel Martín, 2021/01/03
- Re: [PATCH] Fix some failing tests in BSD systems, Dmitry Gutov, 2021/01/03
- Re: [PATCH] Fix some failing tests in BSD systems, Eli Zaretskii, 2021/01/03
- Re: [PATCH] Fix some failing tests in BSD systems, Dmitry Gutov, 2021/01/04
- Re: [PATCH] Fix some failing tests in BSD systems, Eli Zaretskii, 2021/01/04
- Re: [PATCH] Fix some failing tests in BSD systems, Dmitry Gutov, 2021/01/04
- Re: [PATCH] Fix some failing tests in BSD systems, Daniel Martín, 2021/01/04
- Re: [PATCH] Fix some failing tests in BSD systems, Dmitry Gutov, 2021/01/05
- Re: [PATCH] Fix some failing tests in BSD systems, Daniel Martín, 2021/01/06