unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64821@debbugs.gnu.org, Ihor Radchenko <yantar92@gmail.com>
Subject: bug#64821: 30.0.50; write-region errs when overwriting an already open file
Date: Thu, 27 Jul 2023 17:07:26 +0200	[thread overview]
Message-ID: <2B783248-53AF-4486-8208-74A6B0A517EE@gmail.com> (raw)
In-Reply-To: <87y1j53hrz.fsf@localhost>

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

The change on master (8955853368) causes filelock-tests to fail; see attached log.
This is on macOS with an out-of-tree build.


[-- Attachment #2: filelock-tests.log --]
[-- Type: application/octet-stream, Size: 2747 bytes --]

  GEN      src/filelock-tests.log
Running 6 tests (2023-07-27 17:03:57+0200, selector `(not (or (tag :unstable) (tag :nativecomp)))')
(Shell command succeeded with no output)
Test filelock-tests-detect-external-change backtrace:
  userlock--check-content-unchanged("/private/var/folders/qy/zstv16390
  userlock--ask-user-about-supersession-threat("/private/var/folders/q
  insert("bar")
  (let ((create-lockfiles cl)) (write-region "foo" nil (buffer-file-na
  (save-current-buffer (let ((create-lockfiles cl)) (write-region "foo
  (unwind-protect (save-current-buffer (let ((create-lockfiles cl)) (w
  (progn (progn (setq buffer-file-name name) (setq buffer-file-truenam
  (unwind-protect (progn (progn (setq buffer-file-name name) (setq buf
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
  (let ((name (concat (file-name-as-directory temp-dir) "userfile")) (
  (progn (let ((name (concat (file-name-as-directory temp-dir) "userfi
  (unwind-protect (progn (let ((name (concat (file-name-as-directory t
  (let* ((coding-system-for-write nil) (temp-file (file-name-as-direct
  (let ((cl (car tail))) (let* ((coding-system-for-write nil) (temp-fi
  (while tail (let ((cl (car tail))) (let* ((coding-system-for-write n
  (let ((tail '(t nil))) (while tail (let ((cl (car tail))) (let* ((co
  (closure (t) nil (let* ((fn-101 #'not) (args-102 (condition-case err
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name filelock-tests-detect-external-change
  ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [... 
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "-l" "src/filelo
  command-line()
  normal-top-level()
Test filelock-tests-detect-external-change condition:
    (wrong-type-argument stringp nil)
   FAILED  1/6  filelock-tests-detect-external-change (0.024295 sec) at ../../emacs/test/src/filelock-tests.el:173
   passed  2/6  filelock-tests-file-locked-p-spoiled (0.001322 sec)
   passed  3/6  filelock-tests-kill-buffer-spoiled (0.000714 sec)
   passed  4/6  filelock-tests-lock-spoiled (0.000609 sec)
   passed  5/6  filelock-tests-lock-unlock-no-errors (0.001055 sec)
   passed  6/6  filelock-tests-unlock-spoiled (0.000917 sec)

Ran 6 tests, 5 results as expected, 1 unexpected (2023-07-27 17:03:58+0200, 0.274700 sec)

1 unexpected results:
   FAILED  filelock-tests-detect-external-change

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




  parent reply	other threads:[~2023-07-27 15:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-24  7:12 bug#64821: 30.0.50; write-region errs when overwriting an already open file Ihor Radchenko
2023-07-24 15:11 ` Eli Zaretskii
2023-07-25  8:16   ` Ihor Radchenko
2023-07-25 12:19     ` Eli Zaretskii
2023-07-27 15:07 ` Mattias Engdegård [this message]
2023-07-27 16:31   ` Eli Zaretskii
2023-07-27 17:47     ` Mattias Engdegård
2023-07-27 19:02       ` Eli Zaretskii
2023-07-27 19:49         ` Mattias Engdegård
2023-07-28  6:40           ` Eli Zaretskii
2023-07-28  9:01             ` Mattias Engdegård
2023-07-28 12:08               ` Eli Zaretskii

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=2B783248-53AF-4486-8208-74A6B0A517EE@gmail.com \
    --to=mattias.engdegard@gmail.com \
    --cc=64821@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=yantar92@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).