From: Michael Albinus Date: Sat, 19 Aug 2023 08:08:35 +0000 (+0200) Subject: Adapt Tramp test X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aa58f6e909ae7a23658844f4be90af5d27fe7cfc;p=emacs.git Adapt Tramp test * test/lisp/net/tramp-archive-tests.el (tramp-archive-test44-user-group-ids): Extend test. --- diff --git a/test/lisp/net/tramp-archive-tests.el b/test/lisp/net/tramp-archive-tests.el index e34e830cb83..9500ce0efca 100644 --- a/test/lisp/net/tramp-archive-tests.el +++ b/test/lisp/net/tramp-archive-tests.el @@ -895,11 +895,16 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." (skip-unless (and (fboundp 'file-user-uid) (fboundp 'file-group-gid))) - (let ((default-directory tramp-archive-test-archive)) - ;; `file-user-uid' and `file-group-gid' exist since Emacs 30.1. - ;; We don't want to see compiler warnings for older Emacsen. - (should (integerp (with-no-warnings (file-user-uid)))) - (should (integerp (with-no-warnings (file-group-gid)))))) + ;; `file-user-uid' and `file-group-gid' exist since Emacs 30.1. + ;; We don't want to see compiler warnings for older Emacsen. + (let* ((default-directory tramp-archive-test-archive) + (uid (with-no-warnings (file-user-uid))) + (gid (with-no-warnings (file-group-gid)))) + (should (integerp uid)) + (should (integerp gid)) + (let ((default-directory tramp-archive-test-file-archive)) + (should (equal uid (with-no-warnings (file-user-uid)))) + (should (equal gid (with-no-warnings (file-group-gid))))))) (ert-deftest tramp-archive-test48-auto-load () "Check that `tramp-archive' autoloads properly." diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 61c5378bc9f..50687dfe993 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -5383,7 +5383,7 @@ If UNSTABLE is non-nil, the test is tagged as `:unstable'." (let ((default-directory ert-remote-temporary-file-directory) (tmp-name (tramp--test-make-temp-name nil quoted)) kill-buffer-query-functions command proc) - (should-not (apply #'make-process nil)) ; use `apply' to avoid warnings + (should-not (apply #'make-process nil)) ; Use `apply' to avoid warnings. ;; Simple process. (unwind-protect