(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."
(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