Subject: Re: bug#22145: 25.0.50; tramp and auto-revert tests hang on OS X

From: Michael Albinus <[email-masked]>
Date: Sat, 12 Dec 2015 20:21:26 +0100

Anders Lindgren <[email-masked]> writes:

> Hi!

Hi Anders,

>     Could you pls show the results of
>
>     # make -C test/automated auto-revert-tests
>
> Apparently, this no longer has a problem.

There was a bug indeed in auto-revert-tests.el, which made it freezing
when no file notification was available. This I have fixed a week ago,
commit 8b87522925c4acaa0b35459db2657fc4fc79f8d1. Maybe the error you
have seen predates that patch.

>     # make -C test/automated tramp-tests
>
> passed 29/42 tramp-test28-shell-command
> (Bzr)
>
> Test tramp-test29-vc-registered backtrace:
> vc-do-command("*vc*" 0 "bzr" nil "init")
> apply(vc-do-command "*vc*" 0 "bzr" nil "init" nil)

[...]

> Test tramp-test29-vc-registered condition:
> (error "Running bzr init ....FAILED (status 1)")
> FAILED 30/42 tramp-test29-vc-registered

This seems to be rather a vc-bzr error. Shouldn't happen, but this isn't
the cause of the freeze. To be investigated later.

> skipped 35/42 tramp-test31-special-characters-with-stat 

The next test, which hangs, is `tramp-test32-utf8'. Hard to debug in
batch mode. Could you, pls, apply the following patch:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/emacs-25/test/automated/tramp-tests.el.~emacs-25~	2015-12-12 20:13:06.844365370 +0100
--- /home/albinus/src/emacs-25/test/automated/tramp-tests.el	2015-12-12 20:12:01.987541309 +0100
***************
*** 2031,2037 ****
    "Check UTF8 encoding in file names and file contents."
    (skip-unless (tramp--test-enabled))
  
!   (tramp--test-utf8))
  
  (ert-deftest tramp-test32-utf8-with-stat ()
    "Check UTF8 encoding in file names and file contents.
--- 2031,2038 ----
    "Check UTF8 encoding in file names and file contents."
    (skip-unless (tramp--test-enabled))
  
!   (tramp--instrument-test-case 10
!   (tramp--test-utf8)))
  
  (ert-deftest tramp-test32-utf8-with-stat ()
    "Check UTF8 encoding in file names and file contents.
--8<---------------cut here---------------end--------------->8---

Eval tramp-tests.el. Afterwards, apply

M-x ert <RET> tramp-test32-utf8 <RET>

Wait a while until you know for sure it hangs. Apply C-g. Move the
cursor over the "tramp-test32-utf8" string in the *ert* buffer, and
press m. You will see the *ERT Messages* buffer, pls show.

> -- Anders

Best regards, Michael.