<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/src, branch scratch/low-level-key</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Avoid extra output in Vprin1_to_string_buffer (bug#78842)</title>
<updated>2025-06-28T10:46:08+00:00</updated>
<author>
<name>Pip Cet</name>
</author>
<published>2025-06-28T09:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6b19eb53c5048cfec1f3601afb44f94ebbb9d138'/>
<id>6b19eb53c5048cfec1f3601afb44f94ebbb9d138</id>
<content type='text'>
print_error_message can throw after producing some output, so use
unwind-protect to ensure prin1-to-string-buffer is cleared.

* src/print.c (erase_prin1_to_string_buffer): New.
(Ferror_message_string): Use it to catch errors thrown in
'print_error_message'.
* test/src/print-tests.el (error-message-string-circular): Expand
test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
print_error_message can throw after producing some output, so use
unwind-protect to ensure prin1-to-string-buffer is cleared.

* src/print.c (erase_prin1_to_string_buffer): New.
(Ferror_message_string): Use it to catch errors thrown in
'print_error_message'.
* test/src/print-tests.el (error-message-string-circular): Expand
test.
</pre>
</div>
</content>
</entry>
<entry>
<title>(Finsert_file_contents): Refine commit d07af40d8826</title>
<updated>2025-06-28T03:11:39+00:00</updated>
<author>
<name>Stefan Monnier</name>
</author>
<published>2025-06-23T02:25:03+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6c0bbf0f921682a185ebd57efef1e9d4f8ced788'/>
<id>6c0bbf0f921682a185ebd57efef1e9d4f8ced788</id>
<content type='text'>
* src/fileio.c (Finsert_file_contents): Inhibit ask-supersession
only if we're VISITing in a non-narrowed buffer (bug#78866).

* test/src/fileio-tests.el (ert--tests-dir): New var.
(fileio-tests--insert-file-contents-supersession): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/fileio.c (Finsert_file_contents): Inhibit ask-supersession
only if we're VISITing in a non-narrowed buffer (bug#78866).

* test/src/fileio-tests.el (ert--tests-dir): New var.
(fileio-tests--insert-file-contents-supersession): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix usage of 'treesit-defun-type-regexp' in treesit-tests.</title>
<updated>2025-06-25T16:45:54+00:00</updated>
<author>
<name>Juri Linkov</name>
</author>
<published>2025-06-25T16:45:54+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=789a6b969345d6f9e0c8604bff8618d20a6cf536'/>
<id>789a6b969345d6f9e0c8604bff8618d20a6cf536</id>
<content type='text'>
* test/src/treesit-tests.el (treesit--ert-test-defun-navigation):
Replace 'treesit-defun-type-regexp' with
'(or treesit-defun-type-regexp 'defun)' that fixes the tests
for ts-modes that set up the 'defun' thing instead of
'treesit-defun-type-regexp'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/treesit-tests.el (treesit--ert-test-defun-navigation):
Replace 'treesit-defun-type-regexp' with
'(or treesit-defun-type-regexp 'defun)' that fixes the tests
for ts-modes that set up the 'defun' thing instead of
'treesit-defun-type-regexp'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make nativecomp don't error when encountering undeclared types (bug#6573)</title>
<updated>2025-06-17T07:22:32+00:00</updated>
<author>
<name>Andrea Corallo</name>
</author>
<published>2025-06-17T07:06:45+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f38e969e472284dbe475f6f3dbe6770d87588291'/>
<id>f38e969e472284dbe475f6f3dbe6770d87588291</id>
<content type='text'>
* test/src/comp-resources/comp-test-funcs.el (comp-test-76573-1-f): New
function.
* lisp/emacs-lisp/comp-cstr.el (comp-supertypes): Don't error if 'type'
is unknown.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/comp-resources/comp-test-funcs.el (comp-test-76573-1-f): New
function.
* lisp/emacs-lisp/comp-cstr.el (comp-supertypes): Don't error if 'type'
is unknown.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix segfault in profiler-cpu-log and profiler-memory-log (bug#78763)</title>
<updated>2025-06-14T14:54:06+00:00</updated>
<author>
<name>Zach Shaftel</name>
</author>
<published>2025-06-11T19:37:31+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=009cdc8ae09ef060c030feac06578a4ba37cd8c5'/>
<id>009cdc8ae09ef060c030feac06578a4ba37cd8c5</id>
<content type='text'>
* src/profiler.c (export_log): Check if a log has been allocated first,
and return nil if it hasn't.
(Fprofiler_cpu_log, Fprofiler_memory_log): Doc fix.
* test/src/profiler-tests.el (profiler-tests-cpu-profiler)
(profiler-tests-memory-profiler): New tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/profiler.c (export_log): Check if a log has been allocated first,
and return nil if it hasn't.
(Fprofiler_cpu_log, Fprofiler_memory_log): Doc fix.
* test/src/profiler-tests.el (profiler-tests-cpu-profiler)
(profiler-tests-memory-profiler): New tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Gather variable binding tests in data-tests.el</title>
<updated>2025-05-30T10:41:19+00:00</updated>
<author>
<name>Sean Whitton</name>
</author>
<published>2025-05-30T10:41:06+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f699b6e4f409c0cc98703a2cea9b243ff8cb570a'/>
<id>f699b6e4f409c0cc98703a2cea9b243ff8cb570a</id>
<content type='text'>
* test/lisp/emacs-lisp/lisp-tests.el (c-e-x, c-e-l):
Move to data-tests.el.
(core-elisp-tests-2-window-configurations): Rename ...
(core-elisp-tests-1-window-configurations): ... to this.
(core-elisp-tests-3-backquote): Rename ...
(core-elisp-tests-2-backquote): ... to this.
(core-elisp-tests-1-defvar-in-let)
(core-elisp-tests-4-toplevel-values): Move and rename ...
* test/src/data-tests.el (binding-test-defvar-in-let)
(binding-test-toplevel-values): ... to these.
(c-e-x, c-e-l): Moved from data-tests.el.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/lisp/emacs-lisp/lisp-tests.el (c-e-x, c-e-l):
Move to data-tests.el.
(core-elisp-tests-2-window-configurations): Rename ...
(core-elisp-tests-1-window-configurations): ... to this.
(core-elisp-tests-3-backquote): Rename ...
(core-elisp-tests-2-backquote): ... to this.
(core-elisp-tests-1-defvar-in-let)
(core-elisp-tests-4-toplevel-values): Move and rename ...
* test/src/data-tests.el (binding-test-defvar-in-let)
(binding-test-toplevel-values): ... to these.
(c-e-x, c-e-l): Moved from data-tests.el.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unsafe SDATA usage in print.c (bug#78590)</title>
<updated>2025-05-28T19:22:57+00:00</updated>
<author>
<name>Pip Cet</name>
</author>
<published>2025-05-28T14:11:07+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=d14fc6b75f128ed538c123ec79bd3d955ca9bf70'/>
<id>d14fc6b75f128ed538c123ec79bd3d955ca9bf70</id>
<content type='text'>
* src/print.c (print_string_1): Renamed from 'print_string', with an
extra argument to disable nonascii escaping.
(print_string): New function.
(print_object): Use 'print_string_1', not 'strout'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/print.c (print_string_1): Renamed from 'print_string', with an
extra argument to disable nonascii escaping.
(print_string): New function.
(print_object): Use 'print_string_1', not 'strout'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix filelock-tests on MS-Windows</title>
<updated>2025-05-12T12:08:20+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-05-12T12:08:20+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8b67e566b9fe156b6be8be0a6381052fa79abc2c'/>
<id>8b67e566b9fe156b6be8be0a6381052fa79abc2c</id>
<content type='text'>
* test/src/filelock-tests.el (filelock-tests-file-locked-p-spoiled)
(filelock-tests-unlock-spoiled)
(filelock-tests-kill-buffer-spoiled): Don't special-case
MS-Windows, as it was evidently fixed to signal the same error as
Posix systems.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/filelock-tests.el (filelock-tests-file-locked-p-spoiled)
(filelock-tests-unlock-spoiled)
(filelock-tests-kill-buffer-spoiled): Don't special-case
MS-Windows, as it was evidently fixed to signal the same error as
Posix systems.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test for file time-stamp granularity on MS-Windows</title>
<updated>2025-05-11T12:47:17+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-05-11T12:47:17+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=7d84ffc2ded59a1d32b902cf7487a6486e0d9869'/>
<id>7d84ffc2ded59a1d32b902cf7487a6486e0d9869</id>
<content type='text'>
* test/src/fileio-tests.el
(fileio-tests-w32-time-stamp-granularity): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/fileio-tests.el
(fileio-tests-w32-time-stamp-granularity): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>; More fixes for treesit tests</title>
<updated>2025-05-05T12:16:43+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-05-05T12:16:43+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=cc6e604da6f274aafeda1476b2e1e2083063c20e'/>
<id>cc6e604da6f274aafeda1476b2e1e2083063c20e</id>
<content type='text'>
* test/src/treesit-tests.el (treesit-parse-string)
(treesit-parser-tracking-line-column-p)
(treesit-tracking-line-column-p, treesit--linecol-at)
(treesit--linecol-cache-set, treesit--linecol-cache)
(treesit-languages-require-line-column-tracking): Declare.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/src/treesit-tests.el (treesit-parse-string)
(treesit-parser-tracking-line-column-p)
(treesit-tracking-line-column-p, treesit--linecol-at)
(treesit--linecol-cache-set, treesit--linecol-cache)
(treesit-languages-require-line-column-tracking): Declare.
</pre>
</div>
</content>
</entry>
</feed>
