GNU bug report logs - #42537
28.0.50; wdired-test-bug34915 test failing on macOS

Previous Next

Package: emacs;

Reported by: Philipp <p.stephani2 <at> gmail.com>

Date: Sat, 25 Jul 2020 18:47:01 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42537 in the body.
You can then email your comments to 42537 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Sat, 25 Jul 2020 18:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philipp <p.stephani2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 25 Jul 2020 18:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philipp <p.stephani2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Sat, 25 Jul 2020 20:46:16 +0200
This is yet another follow-up tp bug#30700, reporting each failing test
case individually.

(Shell command succeeded with no output)
Connection file "/var/folders/ks/sxl3n3w51td0ry21j3tjs1wh0000gn/T/test-dir-gPZnuj/server" deleted
Press C-c C-c when finished or C-c ESC to abort changes
1 rename actions failed--type ? for details
Connection file "/var/folders/ks/sxl3n3w51td0ry21j3tjs1wh0000gn/T/test-dir-gPZnuj/server" deleted
Test wdired-test-bug34915 backtrace:
  signal(ert-test-failed (((should (equal dir (pop names))) :form (equ
  ert-fail(((should (equal dir (pop names))) :form (equal "bar@" "wbar
  #f(compiled-function () #<bytecode 0xdfa3f2ccdbd9c18>)()
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name wdired-test-bug34915 :documentation "
  ert-run-or-rerun-test(#s(ert--stats :selector (not (or ... ...)) :te
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/wdired-tests" "--eva
  command-line()
  normal-top-level()
Test wdired-test-bug34915 condition:
    (ert-test-failed
     ((should
       (equal dir
	      (pop names)))
      :form
      (equal "bar@" "wbar@")
      :value nil :explanation
      (arrays-of-different-length 4 5 "bar@" "wbar@" first-mismatch-at 0)))
   FAILED  3/5  wdired-test-bug34915 (0.353864 sec)

(Crystal ball says this might be related to macOS filename
normalization/case-insensitivity.)


In GNU Emacs 28.0.50 (build 67, x86_64-apple-darwin19.5.0, NS appkit-1894.50 Version 10.15.5 (Build 19F101))
 of 2020-07-25
Repository revision: 3b44829823f43d3736b8ec9db2258eeff7f6c16a
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.5

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --with-modules --without-xml2 --without-pop --with-mailutils
 --enable-gcc-warnings=warn-only --enable-checking=all
 --enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''

Configured features:
JPEG TIFF GIF PNG NOTIFY KQUEUE ACL GNUTLS ZLIB TOOLKIT_SCROLL_BARS NS
MODULES THREADS JSON PDUMPER LCMS2

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs rfc822
mml easymenu mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs
text-property-search time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils phst skeleton derived edmacro
kmacro pcase ffap thingatpt url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map url-vars mailcap subr-x rx gnutls puny seq
byte-opt gv bytecomp byte-compile cconv dbus xml compile comint
ansi-color ring cl-loaddefs cl-lib tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads kqueue cocoa ns
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 69709 6701)
 (symbols 48 8650 1)
 (strings 32 23543 1226)
 (string-bytes 1 768591)
 (vectors 16 14147)
 (vector-slots 8 172535 9084)
 (floats 8 26 29)
 (intervals 56 206 0)
 (buffers 992 10))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Tue, 04 Aug 2020 12:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 42537 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp <p.stephani2 <at> gmail.com>
Cc: 42537 <at> debbugs.gnu.org
Subject: Re: bug#42537: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Tue, 04 Aug 2020 14:32:13 +0200
Philipp <p.stephani2 <at> gmail.com> writes:

>       :form
>       (equal "bar@" "wbar@")
>       :value nil :explanation
>       (arrays-of-different-length 4 5 "bar@" "wbar@" first-mismatch-at 0)))
>    FAILED  3/5  wdired-test-bug34915 (0.353864 sec)
>
> (Crystal ball says this might be related to macOS filename
> normalization/case-insensitivity.)

There's something very odd going on here.

If I create a file /tmp/bar and then say

(make-symbolic-link "bar" "foo")

I get, as expected

  -rw-r--r--  1 larsi  wheel    0 Aug  4 14:09 bar
  lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:09 foo -> bar

However, if I do something similar in the test director, dired insists
on adding a "@" to the end of the file name, which messes up everything:
 
  /var/folders/l6/0kf2px5j7tz_wbp9lf_hgfwm0000gn/T/test-dir-iRvcaN:

  -rw-r--r--  1 larsi  staff   1 Aug  4 14:12 zot
  lrwxr-xr-x  1 larsi  staff   3 Aug  4 14:14 zotlink@ -> zot

Uhm...  Oh, that's the entire point of the test.  :-)  "ls -F" adds the
"@".

So the error is a real bug, because

 (dired-get-filename 'no-dir t)
 => "zotlink@"

And that's because dired-ls-F-marks-symlinks is nil...

;; 1. For dired to work on a host which marks symlinks with a trailing @ in
;;    an ls -alF listing, you need to (setq dired-ls-F-marks-symlinks t).
;;    Most UNIX systems do not do this, but ULTRIX does.

And Macos is another:

larsi <at> space /tmp % ls -alF /tmp/
total 0
drwxrwxrwt  8 root   wheel  256 Aug  4 14:12 ./
drwxr-xr-x  6 root   wheel  192 Aug  2 18:53 ../
-rw-r--r--  1 larsi  wheel    0 Aug  4 14:09 bar
lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:09 foo@ -> bar
lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:10 foo3@ -> bar
lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:12 foo4@ -> bar

OK, I've now adjusted the test and fixed the doc string to
dired-ls-F-marks-symlinks in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 12:33:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42537 <at> debbugs.gnu.org and Philipp <p.stephani2 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 12:33:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Tue, 04 Aug 2020 13:24:01 GMT) Full text and rfc822 format available.

Message #15 received at 42537 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Philipp <p.stephani2 <at> gmail.com>, 42537 <at> debbugs.gnu.org
Subject: Re: bug#42537: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Tue, 04 Aug 2020 15:23:33 +0200
>>>>> On Tue, 04 Aug 2020 14:32:13 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:
    Lars> ;; 1. For dired to work on a host which marks symlinks with a trailing @ in
    Lars> ;;    an ls -alF listing, you need to (setq dired-ls-F-marks-symlinks t).
    Lars> ;;    Most UNIX systems do not do this, but ULTRIX does.

    Lars> And Macos is another:

    Lars> larsi <at> space /tmp % ls -alF /tmp/
    Lars> total 0
    Lars> drwxrwxrwt  8 root   wheel  256 Aug  4 14:12 ./
    Lars> drwxr-xr-x  6 root   wheel  192 Aug  2 18:53 ../
    Lars> -rw-r--r--  1 larsi  wheel    0 Aug  4 14:09 bar
    Lars> lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:09 foo@ -> bar
    Lars> lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:10 foo3@ -> bar
    Lars> lrwxr-xr-x  1 larsi  wheel    3 Aug  4 14:12 foo4@ -> bar

    Lars> OK, I've now adjusted the test and fixed the doc string to
    Lars> dired-ls-F-marks-symlinks in Emacs 28.

Ah, this explains why the test wasnʼt failing for me: I installed GNU
ls :-)

Robert




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Tue, 04 Aug 2020 13:34:02 GMT) Full text and rfc822 format available.

Message #18 received at 42537 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philipp <p.stephani2 <at> gmail.com>, 42537 <at> debbugs.gnu.org
Subject: Re: bug#42537: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Tue, 04 Aug 2020 15:33:02 +0200
Robert Pluim <rpluim <at> gmail.com> writes:

> Ah, this explains why the test wasnʼt failing for me: I installed GNU
> ls :-)

And I didn't quite fix it, either...  I thought I did, but because of
that defun/ert-deftest thing, I didn't actually check it.

There seems to be further bugs with dired-ls-F-marks-symlinks  -- it
doesn't work when in editing mode...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug No longer marked as fixed in versions 28.1 and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 13:45:02 GMT) Full text and rfc822 format available.

Removed tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 13:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Tue, 04 Aug 2020 13:46:01 GMT) Full text and rfc822 format available.

Message #25 received at 42537 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philipp <p.stephani2 <at> gmail.com>, 42537 <at> debbugs.gnu.org
Subject: Re: bug#42537: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Tue, 04 Aug 2020 15:44:55 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> There seems to be further bugs with dired-ls-F-marks-symlinks  -- it
> doesn't work when in editing mode...

The bug is in wdired--restore-dired-filename-prop, which calculates the
end of the file name wrong in this case.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Tue, 04 Aug 2020 13:58:02 GMT) Full text and rfc822 format available.

Message #28 received at 42537 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Philipp <p.stephani2 <at> gmail.com>, 42537 <at> debbugs.gnu.org
Subject: Re: bug#42537: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Tue, 04 Aug 2020 15:57:33 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> There seems to be further bugs with dired-ls-F-marks-symlinks  -- it
>> doesn't work when in editing mode...
>
> The bug is in wdired--restore-dired-filename-prop, which calculates the
> end of the file name wrong in this case.

OK; think I've got it now...

I really dislike how dired (and wdired) works -- it's just hack upon
hack...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 13:58:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42537 <at> debbugs.gnu.org and Philipp <p.stephani2 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 13:58:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42537; Package emacs. (Tue, 04 Aug 2020 16:29:02 GMT) Full text and rfc822 format available.

Message #35 received at 42537 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Robert Pluim <rpluim <at> gmail.com>, 42537 <at> debbugs.gnu.org
Subject: Re: bug#42537: 28.0.50; wdired-test-bug34915 test failing on macOS
Date: Tue, 4 Aug 2020 18:27:47 +0200
Am Di., 4. Aug. 2020 um 15:57 Uhr schrieb Lars Ingebrigtsen <larsi <at> gnus.org>:
>
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
> > Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> >
> >> There seems to be further bugs with dired-ls-F-marks-symlinks  -- it
> >> doesn't work when in editing mode...
> >
> > The bug is in wdired--restore-dired-filename-prop, which calculates the
> > end of the file name wrong in this case.
>
> OK; think I've got it now...

It's working now for me, thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 02 Sep 2020 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 230 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.