Subject: Re: bug#43052: tramp-test04-substitute-in-file-name failure on RHEL 7.8

From: Michael Albinus <[email-masked]>
Date: Thu, 27 Aug 2020 20:46:21 +0200

Paul Eggert <[email-masked]> writes:

Hi Paul,

> Found via 'make check'. tramp-tests.log says this:
>
>    FAILED   7/47  tramp-test04-substitute-in-file-name (0.011468 sec)

Could you pls apply the appended patch to tramp-tests.el? Then run

# make -C test tramp-tests.log SELECTOR='"04"'

I would like to see tramp-tests.log.

Best regards, Michael.

*** /tmp/ediffXcGrD5	2020-08-27 20:40:26.734079740 +0200
--- /home/albinus/src/emacs/test/lisp/net/tramp-tests.el	2020-08-27 20:39:36.956789137 +0200
***************
*** 2024,2029 ****
--- 2024,2030 ----
    "Check `substitute-in-file-name'."
    (skip-unless (eq tramp-syntax 'default))

+   (tramp--test-instrument-test-case 11
    ;; Suppress method name check.
    (let ((tramp-methods (cons '("method") tramp-methods)))
      (should
***************
*** 2115,2121 ****
        (should
         (string-equal
  	(substitute-in-file-name "/method:host:/:/path/$$FOO")
! 	"/method:host:/:/path/$$FOO")))))

  (ert-deftest tramp-test05-expand-file-name ()
    "Check `expand-file-name'."
--- 2116,2122 ----
        (should
         (string-equal
  	(substitute-in-file-name "/method:host:/:/path/$$FOO")
! 	"/method:host:/:/path/$$FOO"))))))

  (ert-deftest tramp-test05-expand-file-name ()
    "Check `expand-file-name'."