[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master aa58f6e909a 2/3: Adapt Tramp test
From: |
Michael Albinus |
Subject: |
master aa58f6e909a 2/3: Adapt Tramp test |
Date: |
Sat, 19 Aug 2023 04:12:05 -0400 (EDT) |
branch: master
commit aa58f6e909ae7a23658844f4be90af5d27fe7cfc
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
Adapt Tramp test
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test44-user-group-ids): Extend test.
---
test/lisp/net/tramp-archive-tests.el | 15 ++++++++++-----
test/lisp/net/tramp-tests.el | 2 +-
2 files changed, 11 insertions(+), 6 deletions(-)
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