aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add more multisession testsscratch/sqliteLars Ingebrigtsen2021-12-151-0/+31
|
* Document using make-multisession directlyLars Ingebrigtsen2021-12-151-2/+5
|
* Make multisession tests less extensiveLars Ingebrigtsen2021-12-141-1/+1
|
* Unhex package/keys in the files backend and flip defaultsLars Ingebrigtsen2021-12-141-0/+4
|
* Add busy-waiting files testLars Ingebrigtsen2021-12-141-1/+37
|
* Implement a simple file-based multisesson storageLars Ingebrigtsen2021-12-141-2/+30
|
* Rearrange multisession to allow several backendsLars Ingebrigtsen2021-12-141-63/+61
|
* Default to using a write-ahead logLars Ingebrigtsen2021-12-131-2/+1
|
* Tweak multisession stuff and improve concurrencyLars Ingebrigtsen2021-12-131-8/+16
|
* Start thinking about handling contended tablesLars Ingebrigtsen2021-12-121-1/+40
|
* Delete test fileLars Ingebrigtsen2021-12-121-2/+1
|
* Add a multisession testLars Ingebrigtsen2021-12-121-0/+56
|
* Tramp code cleanupMichael Albinus2021-12-061-4/+3
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-get-default-directory) (tramp-get-buffer-string): New defsubsts. (tramp-message, tramp-error-with-buffer) (tramp-file-name-for-operation, tramp-command-completion-p) (tramp-action-login, tramp-action-yesno, tramp-action-yn) (tramp-action-terminal, tramp-action-confirm-message) (tramp-wait-for-regexp, tramp-call-process) (tramp-call-process-region, tramp-read-passwd): * lisp/net/tramp-cmds.el (tramp-list-remote-buffers) (tramp-reporter-dump-variable): * lisp/net/tramp-gvfs.el (tramp-gvfs-monitor-process-filter): * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory) (tramp-sh-handle-process-file, tramp-sh-handle-write-region) (tramp-sh-gio-monitor-process-filter): * lisp/net/tramp-smb.el (tramp-smb-action-set-acl): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-name-all-completions): * test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case) (tramp-test32-shell-command): Use them.
* Prefer nil to (current-time) when either will doPaul Eggert2021-12-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/timer.el (timer-event-handler, run-at-time): * lisp/gnus/gnus-score.el (gnus-score-date): * lisp/gnus/gnus-search.el (gnus-search-query-parse-date) (gnus-search-imap-handle-date): * lisp/gnus/gnus-sum.el (gnus-user-date) (gnus-summary-create-article): * lisp/image-dired.el (image-dired-create-thumb-1): * lisp/image/gravatar.el (gravatar-retrieve) (gravatar--prune-cache): * lisp/net/dbus.el (dbus-monitor-handler): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-times): * lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times): * test/lisp/autorevert-tests.el (auto-revert--wait-for-revert) (auto-revert-tests--write-file, auto-revert-test--wait-for): * test/lisp/net/tramp-tests.el (tramp--test-print-duration): Prefer nil to (current-time) when either will do, as this avoids some consing. Similarly, prefer omitting (current-time) arg when this is equivalent.
* Use time-equal-p to compare timestamps in testsPaul Eggert2021-12-051-8/+9
| | | | | | * test/lisp/calendar/time-date-tests.el (test-days-to-time) (test-time-since): Use time-equal-p to compare timestamps, since the default form shouldn’t matter.
* vc-git--program-version to support Git for macOS version stringJustin Schell2021-12-061-0/+67
| | | | | | | | | | | `git version` on macOS returns e.g., "git version 2.30.1 (Apple Git-130)" and `vc-git--program-version` currently returns "0" instead of "2.30.1". * lisp/vc/vc-git.el (vc-git--program-version): Ignore text after the version number when parsing git versions (bug#52172). Copyright-paperwork-exempt: yes
* Silence byte-compiler in generator-tests.elStefan Kangas2021-12-051-3/+3
| | | | | * test/lisp/emacs-lisp/generator-tests.el (cps-let*-shadow-empty) (cps-let-shadow-empty, cps-let*-parallel): Silence byte-compiler.
* Silence warnings about testing obsolete functions and macrosStefan Kangas2021-12-054-289/+357
| | | | | | | | * test/lisp/emacs-lisp/cl-generic-tests.el: * test/lisp/emacs-lisp/edebug-tests.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Silence byte-compiler warnings about testing obsolete functions and macros.
* Remove hacks for broken `with-suppressed-warnings'Stefan Kangas2021-12-052-17/+6
| | | | | | * test/lisp/obsolete/cl-tests.el (labels-function-quoting): * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): Remove hack for broken `with-suppressed-warnings'.
* Remove hack from seq-tests.el for broken `with-suppressed-warnings'Lars Ingebrigtsen2021-12-051-14/+10
| | | | | | * test/lisp/emacs-lisp/seq-tests.el: `with-suppressed-warnings' now works better in erf-deftests, so remove hack that works around it (bug#36568).
* eieio-core.el: Allow assignment to cl-structs through `slot-value`Stefan Monnier2021-12-041-2/+5
| | | | | | | | | | | | * lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value): Obey the `:read-only` property of the slot. (eieio-oset): Allow use on cl-structs as well. (eieio-read-only): New error. * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test--struct): Make the last field read-only. (eieio-test-defstruct-slot-value): Test that cl-struct slots can be assigned via `slot-value`.
* Fix (date-to-time "2021-12-04")Paul Eggert2021-12-041-0/+7
| | | | | | | | | | | | | | | This should complete the fix for Bug#52209. * lisp/calendar/time-date.el (date-to-time): Apply decoded-time-set-defaults only to the output of (parse-time-string date), and only when the output has a year (to avoid confusion when dates lack years). There is no point applying it after timezone-make-date-arpa-standard since the latter fills in all the blanks. And the former code mistakenly called encode-time on an already-encoded time. This goes back to the code a couple of days ago, except with changed behavior (to fix Bug#52209) only when timezone-make-date-arpa-standard is not called. * test/lisp/calendar/time-date-tests.el (test-date-to-time) (test-days-between): New tests.
* Silence byte-compiler in some testsStefan Kangas2021-12-0417-80/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/dired-tests.el: * test/lisp/emacs-lisp/cl-macs-tests.el: * test/lisp/emacs-lisp/derived-tests.el: * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: * test/lisp/emacs-lisp/generator-tests.el: * test/lisp/emacs-lisp/lisp-tests.el: * test/lisp/emacs-lisp/seq-tests.el (test-seq-let) (test-seq-setq): * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-if-let*-false) (subr-x-test-if-let*-and-laziness-is-preserved) (subr-x-test-when-let*-false) (subr-x-test-when-let*-and-laziness-is-preserved): * test/lisp/emacs-lisp/timer-tests.el (timer-tests-debug-timer-check): * test/lisp/format-spec-tests.el (format-spec-do-flags-truncate) (format-spec-do-flags-pad): * test/lisp/ls-lisp-tests.el (ls-lisp-test-bug27762): * test/lisp/obsolete/cl-tests.el (labels-function-quoting): * test/lisp/progmodes/elisp-mode-tests.el: * test/lisp/replace-tests.el (replace-regexp-bug45973): * test/lisp/ses-tests.el: * test/lisp/subr-tests.el: * test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode): * test/src/data-tests.el (data-tests--set-default-per-buffer): * test/src/search-tests.el (test-replace-match-modification-hooks): Silence byte-compiler.
* ; Silence byte-compiler warning in testStefan Kangas2021-12-041-1/+1
| | | | | * test/lisp/dired-aux-tests.el (dired-test-bug28834): Silence byte-compiler.
* Add more dired-x testsEli Zaretskii2021-12-031-1/+4
| | | | | * test/lisp/dired-x-tests.el (dired-x--string-to-number): Add more tests with various thousands separators.
* Improve how dired-mark-sexp interprets file sizes in non-C localesLars Ingebrigtsen2021-12-031-0/+7
| | | | | * lisp/dired-x.el (dired-x--string-to-number): Try to understand localised numbers (with "." separators or the like) (bug#23373).
* Merge from origin/emacs-28Stefan Kangas2021-12-031-0/+51
|\ | | | | | | | | | | | | | | | | | | 9c222b9c1a Port to C compilers that lack size-0 arrays fed35a8951 Port emacsclient to Solaris 10 f35d6a9c73 * CONTRIBUTE: Improve commit message instructions e0ee1d003a Work around IBM XL C compiler bug 6b99b6eb8b * admin/make-tarball.txt: Various clarifications. bbf4140091 * admin/diff-tar-files: Don't assume .tar.gz. 0a50ad11db * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.
| * * lisp/tab-bar.el (tab-bar-close-other-tabs): Fix regression.Juri Linkov2021-12-021-0/+51
| | | | | | | | | | | | * test/lisp/tab-bar-tests.el: New file. (tab-bar-tests-close-other-tabs-with-arg): Test for regression that closed the selected tab after selecting it.
* | Add `cl-constantly' functionLars Ingebrigtsen2021-12-021-0/+5
| | | | | | | | | | * lisp/emacs-lisp/cl-lib.el (cl-constantly): Add Common Lisp function missing (bug#21584).
* | Fix usage of deprecated syntax in some cedet testsMichael Levine2021-12-021-13/+10
| | | | | | | | | | * test/lisp/cedet/srecode/fields-tests.el (srecode-field-utest-impl): Fix deprecated syntax.
* | Change how Dired displays available spaceLars Ingebrigtsen2021-12-016-74/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/dired.texi (Misc Dired Features): Document it (bug#23812). * lisp/dired.el (dired-free-space): New user option. (dired-insert-directory): Use it from here. (dired--insert-disk-space): New function that uses the user option. * lisp/files.el (insert-directory): Don't transform "total" here. * lisp/ls-lisp.el (ls-lisp--insert-directory): Or here. Instead just leave the "total <num>" bit alone, and let Dired transform it. * test/lisp/files-tests.el (files-tests): Move "available" tests to dired-tests. * test/lisp/dired-tests.el (data-dir): Moved here.
* | Fix closure-conversion of shadowed captured lambda-lifted varsMattias Engdegård2021-12-012-0/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lambda-lifted variables (ones passed explicitly to lambda-lifted functions) that are also captured in an outer closure and shadowed were renamed incorrectly (bug#51982). Reported by Paul Pogonyshev. * lisp/emacs-lisp/cconv.el (cconv--lifted-arg): New. (cconv-convert): Provide correct definiens for the closed-over variable. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases): * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests--intern-all) (cconv-closure-convert-remap-var): Add tests.
* | Merge from origin/emacs-28Stefan Kangas2021-12-011-1/+35
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | e632b83a28 Update authors.el for Emacs 28 e9fdb11903 ; * ChangeLog.3: Some additional fixes. 8fa4749df1 ; * ChangeLog.3: Filename fixes. ea5a90b4f4 * lisp/repeat.el: Fix long-standing problem when a random ... ef4954b69c * lisp/repeat.el (repeat-keep-prefix): Change default to nil. 6d5886e780 * test/lisp/repeat-tests.el (repeat-tests-call-b): Test fo... 9e16c6a96d ; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc... 9aa8fd6e62 * src/callint.c (Fcall_interactively): Fix inhibit_mouse_e... 70c229b1fc Fix regression in gdb-frame-handler cd9dd26d24 Format and index concept 'predicate' in ELisp Intro ab291656d0 ; * ChangeLog.3: Fix typos. 354f6c5609 ; * ChangeLog.3: Formatting fixes. 6192525a96 ; make change-history-commit
| * * lisp/repeat.el: Fix long-standing problem when a random key activates mapJuri Linkov2021-11-301-0/+34
| | | | | | | | | | | | | | | | | | * lisp/repeat.el (repeat-check-key): New defcustom (bug#51390). (repeat--command-property): New internal function. (repeat-check-key): New function. (repeat-post-hook): Use repeat--command-property and repeat-check-key. * test/lisp/repeat-tests.el (repeat-tests-check-key): New test.
| * * test/lisp/repeat-tests.el (repeat-tests-call-b): Test for commit 588caf0b27.Juri Linkov2021-11-301-1/+1
| | | | | | | | This tests for 'repeat-map' as a variable instead of a symbol.
| * Backport Tramp fixes, don't mergeMichael Albinus2021-11-241-15/+14
| | | | | | | | | | | | | | | | * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist): Use `tramp-handle-file-readable-p'. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
* | time-stamp-tests.el: Test more formatsStephen Gildea2021-11-261-3/+7
| | | | | | | | | | | | * test/lisp/time-stamp-tests.el (time-stamp-format-ignored-modifiers): Additional testing with illegal formats, including "%". (time-stamp-format-multiple-conversions): Add a test with "%%%".
* | MH-E: support Mailutils "folders +/"Stephen Gildea2021-11-251-4/+7
| | | | | | | | | | | | | | * lisp/mh-e/mh-utils.el (mh-sub-folders-parse): Support Mailutils style of "folders +/" output. * test/lisp/mh-e/mh-utils.el: Test "folders +/" with GNU Mailutils 3.13.91 and later.
* | mh-utils-tests: 'mh-sub-folders-actual' coverageStephen Gildea2021-11-241-0/+46
| | | | | | | | | | | | | | | | * test/lisp/mh-e/mh-utils.el (mh-sub-folders-parse-no-folder) (mh-sub-folders-parse-relative-folder, mh-sub-folders-parse-root-folder): New tests. * lisp/mh-e/mh-utils.el (mh-sub-folders-parse): New function, refactored out of 'mh-sub-folders-actual' to create a testing seam.
* | Add new function 'add-display-text-property'Lars Ingebrigtsen2021-11-241-0/+18
| | | | | | | | | | * doc/lispref/display.texi (Display Property): Document it. * lisp/emacs-lisp/subr-x.el (add-display-text-property): New function.
* | mh-utils-tests: Add new tests of "folders +/"Stephen Gildea2021-11-242-22/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/mh-e/mh-utils-tests.el (mh-sub-folders-actual, mh-sub-folders): Add new tests of "folders +/". Rewrite tests that were using 'assoc' to use 'member' instead, so that on failure, ERT logs the list of which the element was not a member, rather than the 'nil' returned by 'assoc'. (mh-test-variant-handles-plus-slash): Factor out new helper function. (mh-folder-completion-function-08-plus-slash) (mh-folder-completion-function-09-plus-slash-tmp): Use new helper function. * test/lisp/mh-e/test-all-mh-variants.sh: LD_LIBRARY_PATH unnecessary.
* | Avoid false positives about wide docstrings for key sequencesStefan Kangas2021-11-222-0/+21
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile--wide-docstring-p): Ignore literal key sequence substitutions. * test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-ignore-substitutions.el: New file. * test/lisp/emacs-lisp/bytecomp-tests.el ("warn-wide-docstring-ignore-substitutions.el"): New test.
* | Add new format for literal key sequences to substitute-command-keysStefan Kangas2021-11-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/help.el (substitute-command-keys): Add new format "\\`f'" for literal key sequences. (Bug#50804) * doc/lispref/help.texi (Keys in Documentation): Document the above new substitution. * test/lisp/help-tests.el (help-tests-substitute-command-keys/literal-key-sequence): (help-tests-substitute-command-keys/literal-key-sequence-errors): New tests. (help-tests-substitute-key-bindings/face-help-key-binding): Extend test.
* | Fix recent compile-tests additionGlenn Morris2021-11-211-1/+1
| | | | | | | | | | | | | | * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps): Bump number of expected errors. ; Surely running the tests before committing would have flagged this?
* | Improve error parsing for GCC -fanalyzer outputPhilip Kaludercic2021-11-211-0/+1
| | | | | | | | | | * compile.el (compilation-error-regexp-alist-alist): Adjust gnu rule * compile-tests.el (compile-tests--test-regexps-data): Add testcase
* | Fix icalendar time zone parsingdickmao2021-11-211-15/+19
| | | | | | | | | | | | | | | | * lisp/calendar/icalendar.el (icalendar--decode-isodatetime): Parse time zones more correctly. * test/lisp/calendar/icalendar-tests.el (icalendar-tests--decode-isodatetime): Fix tests so that they work in other time zones than Europe/Berlin (bug#51959).
* | Make 'eval' use lexical scoping in most testsStefan Kangas2021-11-2011-23/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/electric-tests.el (electric-pair-define-test-form) (define-electric-pair-test): * test/lisp/emacs-lisp/backtrace-tests.el (backtrace-tests--uncompiled-functions): * test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-test--symbol-macrolet): * test/lisp/emacs-lisp/let-alist-tests.el (let-alist-list-to-sexp): * test/lisp/emacs-lisp/lisp-tests.el (elisp-tests-with-temp-buffer, core-elisp-tests-3-backquote): * test/lisp/emacs-lisp/testcover-resources/testcases.el (testcover-testcase-nth-case): * test/lisp/ffap-tests.el (ffap-ido-mode): * test/lisp/files-tests.el (file-test--do-local-variables-test): * test/lisp/net/tramp-tests.el (tramp--test-utf8): * test/lisp/progmodes/elisp-mode-tests.el (find-defs-defgeneric-eval, find-defs-defun-eval) (find-defs-defvar-eval, find-defs-face-eval) (find-defs-feature-eval): Give 'eval' non-nil LEXICAL argument. * test/lisp/subr-tests.el (subr-tests--dolist--wrong-number-of-args): * test/src/eval-tests.el (eval-tests--if-dot-string) (eval-tests--mutating-cond) (eval-tests-19790-backquote-comma-dot-substitution): Test 'eval' using LEXICAL as both nil and non-nil. (eval-tests--let-with-circular-defs): Give explicit nil to 'eval'.
* | Merge from origin/emacs-28Stefan Kangas2021-11-201-1/+0
|\ \ | |/ | | | | c1eea85be1 * test/lisp/net/tramp-tests.el (tramp-get-remote-gid): Rem...
| * * test/lisp/net/tramp-tests.el (tramp-get-remote-gid): Remove declaration.Michael Albinus2021-11-191-1/+0
| |
* | Fix Tramp testMichael Albinus2021-11-191-0/+1
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name): Skip Ange FTP test.