GNU bug report logs - #30327
27.0.50; Failures in files-tests.el on macOS

Previous Next

Package: emacs;

Reported by: Alan Third <alan <at> idiocy.org>

Date: Fri, 2 Feb 2018 20:33:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: Philipp Stephani <p.stephani2 <at> gmail.com>, Michael Albinus <michael.albinus <at> gmx.de>, 30327 <at> debbugs.gnu.org
Subject: bug#30327: 27.0.50; Failures in files-tests.el on macOS
Date: Sat, 3 Feb 2018 16:13:11 +0000
On Sat, Feb 03, 2018 at 12:47:29AM -0500, Noam Postavsky wrote:
> Philipp Stephani <p.stephani2 <at> gmail.com> writes:
> 
> > The differing element is the last access time. This isn't surprising
> > given that reading the directory accesses it. Probably the test
> > should simply ignore the fifth element (the access time). 
> 
> Ah, good point.  I went through all the different file handlers pretty
> quickly when writing these tests, so I missed these details.  It passes
> for me because I mount with 'relatime'.
> 
> Element 9 is "unspecified", so I think we shouldn't check that either.

The patch makes it even worse with two failures now:

F files-tests-file-name-non-special-directory-files-and-attributes
    (void-variable attr-nospecial)

F files-tests-file-name-non-special-file-attributes
    (void-variable attr-nospecial)

I tried changing the new function to:

    (defun files-tests-file-attributes-equal (attr1 attr2)
      ;; Element 4 is access time, which may be changed by the act of
      ;; checking the attributes.
      (setf (nth 4 attr1) nil)
      (setf (nth 4 attr2) nil)
      ;; Element 9 is unspecified.
      (setf (nth 9 attr1) nil)
      (setf (nth 9 attr2) nil)
      (equal attr1 attr2))

Which fixes one but still causes the other to fail:

F files-tests-file-name-non-special-directory-files-and-attributes
    (wrong-type-argument consp nil)

-- 
Alan Third




This bug report was last modified 7 years and 110 days ago.

Previous Next


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