GNU bug report logs -
#56963
29.0.50; trampified make-empty-file on macOS
Previous Next
Reported by: dick.r.chiang <at> gmail.com
Date: Thu, 4 Aug 2022 00:35:02 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 56963 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
dick.r.chiang <at> gmail.com writes:
Hi,
> Someone with a mac might try `make test/lisp/net/tramp-tests`
> to verify the new tramp-test10-write-region (21afc26) works
> as well as it does on linux.
>
> I get this consistently in a macOS 11.6.8 cloud env I've no
> control over:
>
> Test tramp-test10-write-region condition:
> (ert-test-failed
> ((should
> (string-equal
> (buffer-string)
> ""))
> :form
> (string-equal "-n \n" "")
> :value nil :explanation
> (arrays-of-different-length 4 0 "-n \n" "" first-mismatch-at 0)))
I'd like to test, but I have no mac. Could you please instrument the
respective code snippet in `tramp-test10-write-region':
[Message part 2 (text/plain, inline)]
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 63ccd05a26..18c1e509ca 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -2483,6 +2483,7 @@ tramp-test10-write-region
;; Write empty string. Used for creation of temprorary files.
;; Since Emacs 27.1.
+ (tramp--test-instrument-test-case 10
(when (fboundp 'make-empty-file)
(with-no-warnings
(should-error
@@ -2492,7 +2493,7 @@ tramp-test10-write-region
(make-empty-file tmp-name)
(with-temp-buffer
(insert-file-contents tmp-name)
- (should (string-equal (buffer-string) "")))))
+ (should (string-equal (buffer-string) ""))))))
;; Write partly.
(with-temp-buffer
[Message part 3 (text/plain, inline)]
Send the resulting tramp-tests.log for analysis.
My glass ball tells me that it could be related to bug#55767.
Best regards, Michael.
This bug report was last modified 2 years and 291 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.