Subject: bug#71235: Failing test on macOS: tramp-test17-dired-with-wildcards

From: Michael Albinus <[email-masked]>
Date: Tue, 28 May 2024 09:44:07 +0200

Stefan Kangas <[email-masked]> writes:

Hi Stefan,

> I see one tramp test fail on macOS 14.3.1.  Details below:
>
> Ran 98 tests, 82 results as expected, 1 unexpected, 15 skipped
> (2024-05-27 23:27:48+0200, 89.934240 sec)
>
> 1 unexpected results:
>    FAILED  tramp-test17-dired-with-wildcards

Could you pls instrument the test, and run it again? See appended patch.

Best regards, Michael.

diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 2c61efb04d8..22758b07f0c 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3502,6 +3502,7 @@ tramp-test17-dired-with-wildcards
   ;; Wildcards are not supported with "docker cp ..." or "podman cp ...".
   (skip-unless (not (tramp--test-container-oob-p)))

+  (tramp--test-instrument-test-case 10
   (dolist (quoted (if (tramp--test-expensive-test-p) '(nil t) '(nil)))
     (let* ((tmp-name1
 	    (expand-file-name (tramp--test-make-temp-name nil quoted)))
@@ -3603,7 +3604,7 @@ tramp-test17-dired-with-wildcards
 	;; Cleanup.
 	(ignore-errors (kill-buffer buffer))
 	(ignore-errors (delete-directory tmp-name1 'recursive))
-	(ignore-errors (delete-directory tmp-name2 'recursive))))))
+	(ignore-errors (delete-directory tmp-name2 'recursive)))))))

 ;; The following test is inspired by Bug#45691.
 (ert-deftest tramp-test17-insert-directory-one-file ()