Subject: Re: bug#47307: Emacs 27.2 RC2 build/check issues on macOS ARM64

From: Michael Albinus <[email-masked]>
Date: Mon, 22 Mar 2021 09:54:29 +0100

Paul Eggert <[email-masked]> writes:

Hi Paul,

> "make check" reported four unexpected failures. Perhaps a macOS expert
> could be persuaded to look into them. A tarball of the failed logs is
> attached.

1 unexpected results:
   FAILED  tramp-test35-remote-path

This fails for a rather edge case being tested. It shouldn't stop the
release of Emacs 27.2.

For further analysis, could you please apply the appended patch, and
rerun tramp-tests? The resulting log file shall tell us more.

Thanks, and best regards, Michael.

*** /tmp/ediffac90LC	2021-03-22 09:50:44.593344644 +0100
--- /home/albinus/src/emacs-27/test/lisp/net/tramp-tests.el	2021-03-22 09:50:29.844380792 +0100
***************
*** 5030,5035 ****
--- 5030,5036 ----
    ;; Since Emacs 27.1.
    (skip-unless (fboundp 'exec-path))

+   (tramp--test-instrument-test-case 10
    (let* ((tmp-name (tramp--test-make-temp-name))
  	 (default-directory tramp-test-temporary-file-directory)
           (orig-exec-path (with-no-warnings (exec-path)))
***************
*** 5083,5089 ****
         (tramp-dissect-file-name tramp-test-temporary-file-directory)
         'keep-debug 'keep-password)
        (setq tramp-remote-path orig-tramp-remote-path)
!       (ignore-errors (delete-directory tmp-name 'recursive)))))

  (ert-deftest tramp-test36-vc-registered ()
    "Check `vc-registered'."
--- 5084,5090 ----
         (tramp-dissect-file-name tramp-test-temporary-file-directory)
         'keep-debug 'keep-password)
        (setq tramp-remote-path orig-tramp-remote-path)
!       (ignore-errors (delete-directory tmp-name 'recursive))))))

  (ert-deftest tramp-test36-vc-registered ()
    "Check `vc-registered'."