unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: dick.r.chiang@gmail.com
Cc: 56963@debbugs.gnu.org
Subject: bug#56963: 29.0.50; trampified make-empty-file on macOS
Date: Thu, 04 Aug 2022 07:28:58 +0200	[thread overview]
Message-ID: <874jysy3tx.fsf@gmx.de> (raw)
In-Reply-To: <87tu6tdp6z.fsf@dick> (dick r. chiang's message of "Wed, 03 Aug 2022 16:53:08 -0400")

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

dick.r.chiang@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':


[-- Attachment #2: Type: text/plain, Size: 764 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 137 bytes --]


Send the resulting tramp-tests.log for analysis.

My glass ball tells me that it could be related to bug#55767.

Best regards, Michael.

  reply	other threads:[~2022-08-04  5:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-03 20:53 bug#56963: 29.0.50; trampified make-empty-file on macOS dick.r.chiang
2022-08-04  5:28 ` Michael Albinus [this message]
2022-08-04  8:45   ` dick
2022-08-04  9:04     ` Michael Albinus
2022-08-04  9:25       ` dick
2022-08-04  9:34         ` Michael Albinus
2022-08-04 16:14           ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jysy3tx.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=56963@debbugs.gnu.org \
    --cc=dick.r.chiang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).