aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix Testcover bug in handling of vectors containing dotted listsGemini Lasswell2018-04-021-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/testcover.el (testcover-analyze-coverage-compose): Handle dotted lists. Fix bug#30909. * test/lisp/emacs-lisp/testcover-resources/testcases.el: (dotted-list-in-vector-bug-30909): New test case. (quotes-within-backquotes-bug-25316, dotted-backquote) (quoted-backquote, backquoted-vector-bug-25316) (vector-in-macro-spec-bug, backquoted-dotted-alist): Change docstrings to mention analyzing code instead of reinstrumenting it.
* | Fix another case of freed markers in the undo-list (Bug#30931)Noam Postavsky2018-03-301-0/+51
| | | | | | | | | | | | | | | | | | | | * src/alloc.c (free_marker): Remove. * src/editfns.c (save_restriction_restore): * src/insdel.c (signal_before_change): Detach the markers from the buffer when we're done with them instead of calling free_marker on them. * test/src/editfns-tests.el (delete-region-undo-markers-1) (delete-region-undo-markers-2): New tests.
* | Improve Tramp test performanceMichael Albinus2018-03-301-2/+4
| | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-backtrace): Improve performance. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): Skip for older Emacsen. (tramp-test39-utf8): Remove instrumentation.
* | Lisp reader now checks for integer overflowPaul Eggert2018-03-291-4/+18
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/numbers.texi (Integer Basics), etc/NEWS: Document this. * src/lisp.h (S2N_IGNORE_TRAILING, S2N_OVERFLOW_TO_FLOAT): New constants. * src/lread.c (string_to_number): Change trailing bool arg to integer argument with flags, to support S2N_OVERFLOW_TO_FLOAT. All uses changed. * test/src/editfns-tests.el (read-large-integer): New test.
* | Fix Bug#30946Michael Albinus2018-03-291-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Multi-hops): Mention host name checks. * lisp/net/tramp.el (tramp-set-syntax, tramp-dissect-file-name) (tramp-debug-message, tramp-handle-shell-command): * lisp/net/tramp-adb.el (tramp-adb-handle-shell-command): * lisp/net/tramp-archive.el (tramp-archive-file-name-handler) (tramp-archive-dissect-file-name): * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees. * lisp/net/tramp-compat.el (tramp-compat-user-error): Move defsubst --- * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check for proper host names in multi-hop. (Bug#30946) * lisp/net/tramp.el (tramp-user-error): ... here. Make it a defun. * test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules): New test.
* | Test notify handlers only if file notificationPaul Eggert2018-03-281-0/+1
| | | | | | | | | | | | * test/lisp/files-tests.el: (files-file-name-non-special-notify-handlers): Skip if file notification is not available.
* | Remove unstable tags in TrampMichael Albinus2018-03-281-4/+3
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test39-utf8) (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl) (tramp-test39-utf8-with-ls): Remove :unstable tag.
* | Improve tramp--test-utf8Michael Albinus2018-03-281-1/+3
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-check-files): Encode string when testing environment variables. (tramp--test-utf8): Remove "TaiViet" test.
* | (benchmark-run-compiled): Make it work like 'benchmark-run' againStefan Monnier2018-03-271-7/+13
| | | | | | | | | | * lisp/emacs-lisp/benchmark.el (benchmark-run): Add special case for nil repetitions.
* | * test/lisp/emacs-lisp/bytecomp-tests.elGlenn Morris2018-03-261-0/+33
| | | | | | | | (bytecomp-test-featurep-warnings): New.
* | Fix problem with trailing slash in TrampMichael Albinus2018-03-261-7/+9
| | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-handle-file-truename): * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename): * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename): Fix problem with trailing slash. * test/lisp/net/tramp-tests.el (tramp-test21-file-links): Test also quoted directories.
* | Allow `&rest' or `&optional' without following variable (Bug#29165)Noam Postavsky2018-03-251-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is sometimes convenient when writing macros, so that the empty variable case doesn't need to be handled specially. Older versions of Emacs accepted this in some cases (especially the interpreter in Emacs 25 and below was very accepting). | interpreted/compiled | | arglist | 25 & earlier | 26 | 27 | |---------------------------+--------------+-----+-----| | (&rest) | y/n | n/n | y/y | | (&rest &rest) | y/n | n/n | n/n | | (&rest &rest x) | y/n | n/n | n/n | | (&rest x &rest) | y/n | n/n | n/n | | (&rest x &rest y) | y/n | n/n | n/n | |---------------------------+--------------+-----+-----| | (&optional) | y/n | n/n | y/y | | (&optional &optional) | y/n | n/n | n/n | | (&optional x &optional) | y/n | n/n | n/n | | (&optional x &optional y) | y/y | n/n | n/n | |---------------------------+--------------+-----+-----| | (&optional &rest) | y/n | n/n | y/y | | (&optional x &rest) | y/n | n/n | y/y | | (&optional &rest y) | y/y | n/n | y/y | |---------------------------+--------------+-----+-----| | (&rest &optional) | y/n | n/n | n/n | | (&rest &optional y) | y/n | n/n | n/n | | (&rest x &optional y) | y/n | n/n | n/n | The values in the table above can be produced with the following code: (with-current-buffer (get-buffer-create "*ck-args*") (erase-buffer) (dolist (arglist '((&rest) (&rest &rest) (&rest &rest x) (&rest x &rest) (&rest x &rest y) (&optional) (&optional &optional) (&optional x &optional) (&optional x &optional y) (&optional &rest) (&optional x &rest) (&optional &rest y) (&rest &optional) (&rest &optional y) (&rest x &optional y))) (insert (format "%c/%c\n" (condition-case err (progn (funcall `(lambda ,arglist 'ok)) ?y) (error ?n)) (condition-case err (progn (byte-compile-check-lambda-list arglist) ?y) (error ?n)))) (display-buffer (current-buffer)))) * src/eval.c (funcall_lambda): * lisp/emacs-lisp/bytecomp.el (byte-compile-check-lambda-list): Don't check for missing variables after `&rest' and `&optional'. * test/src/eval-tests.el (eval-tests--bugs-24912-and-24913) (eval-tests-accept-empty-optional-rest): Update tests accordingly. * etc/NEWS: Update announcement accordingly. * doc/lispref/functions.texi (Argument List): Update manual to indicate that variable names are optional.
* | Avoid Fortran-style floating-point optimizationPaul Eggert2018-03-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When optimizing arithmetic operations, avoid optimizations that are valid for mathematical numbers but invalid for floating-point. For example, do not optimize (+ 1 v 0.5) to (+ v 1.5), as they may not be the same due to rounding errors. In general, floating-point numbers cannot be constant-folded, since that would make .elc files platform-dependent. * lisp/emacs-lisp/byte-opt.el (byte-optimize-associative-math): Do not optimize floats. (byte-optimize-nonassociative-math, byte-optimize-approx-equal) (byte-optimize-delay-constants-math, byte-compile-butlast) (byte-optimize-logmumble): Remove; no longer used. (byte-optimize-minus): Do not optimize (- 0 x) to (- x). (byte-optimize-multiply): Do not optimize (* -1 x) to (- x). (byte-optimize-divide): Do not optimize (/ x -1) to (- x). (logand, logior, logxor): Optimize with byte-optimize-predicate instead of with byte-optimize-logmumble. * test/lisp/emacs-lisp/bytecomp-tests.el: (byte-opt-testsuite-arith-data): Add a couple of test cases.
* | Instrument tramp-test39-utf8Michael Albinus2018-03-231-2/+4
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-expensive-test): Add the test name to the template. (tramp-test39-utf8): Instrument test.
* | Fix bug#30846, along with misc cleanups found along the wayStefan Monnier2018-03-231-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/src/data-tests.el (data-tests-kill-all-local-variables): New test. * src/buffer.c (swap_out_buffer_local_variables): Remove. Fuse the body of its loop into that of reset_buffer_local_variables. (Fkill_buffer, Fkill_all_local_variables): Don't call it any more. (reset_buffer_local_variables): Make sure the buffer's local binding is swapped out before removing it from the alist (bug#30846). Call watchers before actually killing the var. * src/data.c (Fmake_local_variable): Simplify. Use swap_in_global_binding to swap out any local binding, instead of a mix of find_symbol_value followed by messing with where&found. Don't call swap_in_symval_forwarding since the currently swapped binding is never one we've modified. (Fkill_local_variable): Use swap_in_global_binding rather than messing with where&found to try and trick find_symbol_value into doing the same. * src/alloc.c (mark_localized_symbol): 'where' can't be a frame any more.
* | Port emacs-module-tests to 32-bit EmacsPaul Eggert2018-03-221-1/+1
| | | | | | | | | | | | | | | | | | Fix a portability bug when emacs-module-tests.el is byte-compiled with a 32-bit Emacs (where #x20000000 evaluates to a floating-point number) and then is run on a 64-bit Emacs (where the floating-point number causes a test failure). * test/src/emacs-module-tests.el (mod-test-sum-test): Don’t assume #x20000000 can be represented as an Emacs integer.
* | Merge from origin/emacs-26Glenn Morris2018-03-221-10/+111
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8ac621b (origin/emacs-26) Document DEFUN attributes 16d0cc7 * etc/NEWS: Add an entry for auth-source-pass. cc1702f Fix the MSDOS build daa9e85 Improve warning and error messages 7612dd1 Adjust eieio persistence tests for expected failure f0cf4dc Let eieio-persistent-read read what object-write has written 40ad1ff Handle possible classtype values in eieio-persistent-read 4ec935d Add new tests for eieio persistence 47917d8 * lisp/gnus/gnus-cloud.el (gnus-cloud-synced-files): Fix doc ... e32f352 * lisp/ibuf-ext.el (ibuffer-never-search-content-mode): Fix t... 5268f30 * doc/lispref/windows.texi (Selecting Windows): Fix a typo. 143b485 * doc/lispref/internals.texi (Writing Emacs Primitives): Fix ... 4ab4551 Firm up documentation of generalized variables a5bf099 Improve documentation of Auto-Revert mode ed05eaa Improvements in dired.texi Conflicts: etc/NEWS
| * Adjust eieio persistence tests for expected failureEric Abrahamsen2018-03-221-4/+12
| | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el (eieio-test-persist-hash-and-vector, eieio-test-persist-interior-lists): Persistence does not currently handle deeply-nested objects. Expect current failures, and mark for future fixes.
| * Add new tests for eieio persistencePierre Téchoueyres2018-03-221-10/+103
| | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: (hash-equal): New comparison test for hash-tables. (persist-test-save-and-compare): Use test for hash-tables. (eieio-test-persist-hash-and-vector, eieio-test-persist-interior-lists): New tests.
* | Tag tramp-test39-utf8* as :unstableMichael Albinus2018-03-221-3/+4
| | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test39-utf8) (tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl) (tramp-test39-utf8-with-ls): Tag the tests as :unstable.
* | Port data-tests-popcnt to 32-bit EmacsPaul Eggert2018-03-211-3/+3
| | | | | | | | | | | | | | * test/src/data-tests.el (data-tests-popcnt): Don’t assume Emacs integers can represent 32-bit quantities. Change to a simple and straightforward approach, since runtime performance is not important here.
* | Add tests for Bug#30408Paul Eggert2018-03-211-0/+21
| | | | | | | | | | * test/src/editfns-tests.el (format-%d-large-float) (format-%x-large-float, format-%o-invalid-float): New tests.
* | Quieten eieio-test compilationGlenn Morris2018-03-213-14/+11
| | | | | | | | | | | | | | * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: * test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Remove obsolete name args where not being explicitly tested.
* | Merge from origin/emacs-26Paul Eggert2018-03-201-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 23527013c7 ; Rewrap doc string 4328d5f744 Correct Info link markup 2fb52abd9e Improve documentation of 'with-help-window' ec08c62f03 Minor improvements in building.texi 663aafe1ff * lisp/textmodes/bibtex.el (bibtex-mark-entry): activate mark 05781b2e88 ; Spelling fix aa40014ba3 * doc/emacs/building.texi (Starting GUD): Mention 'guiler'. 23072e468f Yet more proofreading of the Emacs manual ba5a372540 * doc/emacs/rmail.texi: Fix broken link. 6b2210cc29 ; Spelling fix 067c8c4f5b Fix recently-added POP doc glitch fb3dc0e8aa More proofreading of the Emacs manual a776ce7be6 Fix typo in the Emacs manual's VC chapter 7f27d42f0b Pass json-readtable-error data as a list (bug#30489) 10bd3b3af8 Improve word motion docs (Bug#30815) 2b8507fbdc Replace "carriage-return" by "carriage return" in manuals 2616cd94f1 Minor copyedits in mule.texi 36a1d52814 Fix problems caused by fontconfig-2.13.0
| * Pass json-readtable-error data as a list (bug#30489)Basil L. Contovounesios2018-03-181-1/+2
| | | | | | | | | | | | * lisp/json.el (json-readtable-dispatch): Fix error data. * test/lisp/json-tests.el (test-json-read): Check error data is a list.
* | Extend Tramp's UTF8 testsMichael Albinus2018-03-201-6/+22
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-utf8): Apply more exhaustive tests.
* | ; Spelling fixPaul Eggert2018-03-191-1/+1
| |
* | ; * test/lisp/info-xref-tests.el: Remove stray line from previous.Glenn Morris2018-03-191-1/+0
| |
* | * test/lisp/info-xref-tests.el (info-xref-test-emacs-manuals): New.Glenn Morris2018-03-191-0/+18
| |
* | Print top time consuming tests if advisedMichael Albinus2018-03-192-1/+7
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): New argument HIGH. Print top-running tests. * test/Makefile.in (check-doit): Use ${SUMMARIZE_TESTS}. * test/README: Explain SUMMARIZE_TESTS.
* | Fix compilation warnings in subr-x-tests.elNicolas Petton2018-03-181-12/+6
| | | | | | | | | | | | * test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-if-let*-false) (subr-x-test-when-let*-false): Make tests simpler and compiler warning free.
* | Add URL handler for file-name-directory (Bug#30444)Nicolas Petton2018-03-181-0/+75
| | | | | | | | | | | | | | | | * lisp/url/url-handlers.el (url-handler-file-name-directory): New function which handles special cases for `file-name-directory' and URLs. * test/lisp/url/url-handlers-test.el: New file. Add tests for `url-handler-file-name-directory'.
* | Optimize tramp-tests.elMichael Albinus2018-03-171-115/+139
| | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp--test-expensive-test): Make it a defsubst. Adapt all callees. (tramp--test-print-duration): New defmacro. (tramp-test11-copy-file, tramp-test12-rename-file) (tramp-test21-file-links, tramp--test-special-characters): Run some parts only if expensive tests are enabled. (Bug#30807)
* | Print test timings unconditionallyMichael Albinus2018-03-172-10/+0
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-batch-print-duration): Remove. (ert-run-tests-batch): Adapt accordingly. * test/Makefile.in: * test/README: Remove TEST_PRINT_TEST_DURATION.
* | Optimize "make check" and "make check-maybe"Michael Albinus2018-03-163-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print summary duration. * test/Makefile.in (TEST_LOAD_EL): Set default to "no" for targets all, check, and check-maybe. (Bug#30807) * test/README: Reflect recent changes in Makefile. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test99-libarchive-tests): Tag it :unstable.
* | * test/lisp/ses-tests.el: Quieten compilation.Glenn Morris2018-03-151-37/+42
| |
* | Support variable-unquoting syntax in bat-modeEli Zaretskii2018-03-151-2/+3
| | | | | | | | | | | | | | | | | | | | * lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fontify argument numbers in %~n. Suggested by Jostein Kjønigsen <jostein@secure.kjonigsen.net> in emacs-devel. * test/lisp/progmodes/bat-mode-tests.el (bat-test-fontification-iter-var-1): Update the test to check also the %~n construct.
* | Fix an error in tramp-archive-test42-auto-loadMichael Albinus2018-03-151-2/+2
| | | | | | | | | | * test/lisp/net/tramp-archive-tests.el (tramp-archive-test42-auto-load): Do not use "/ssh::" as test directory, it could harm. (Bug#30807)
* | ; * test/README: Fix typoMichael Albinus2018-03-141-1/+1
| |
* | Extend ert to print duration of single testsMichael Albinus2018-03-142-4/+15
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-test-result): New slot ´duration'. (ert-run-or-rerun-test): Set it. (ert-batch-print-duration): New defvar. (ert-run-tests-batch): Print duration if needed. * test/Makefile.in (TEST_PRINT_TEST_DURATION): New variable. * test/README: Explain TEST_PRINT_TEST_DURATION.
* | Fix line-wrapping for term.el (Bug#30775)Noam Postavsky2018-03-131-0/+12
| | | | | | | | | | | | * lisp/term.el (term-emulate-terminal): Leave line-wrapping state if point was moved after we entered it. * test/lisp/term-tests.el (term-line-wrapping-then-motion): New test.
* | Try to stop tramp test hangs on hydraGlenn Morris2018-03-131-0/+3
| | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test41-asynchronous-requests): Use fewer processes on hydra.
* | Merge from origin/emacs-26Paul Eggert2018-03-101-0/+3
|\ \ | |/ | | | | | | | | | | | | | | 5c91ca8 Fix create_process bug breaking eudc-expand-inline e244fed Clarify that nil doesn't match itself as a cl-case clause (Bu... df0e7e2 Improve SVG documentation a34ef52 Document the "URL" keyword in library headers fbc7f9a * test/lisp/international/mule-tests.el: Avoid local variable... 16faff6 ; * lisp/org/org-table.el: Replace obsolete alias in comment.
| * * test/lisp/international/mule-tests.el:Glenn Morris2018-03-091-0/+3
| | | | | | | | Avoid local variables confusion.
| * Revert last commitMichael Heerdegen2018-03-061-121/+111
| | | | | | | | | | This reverts commit af4697faa1f5b643f63a9ea61aa205a4c1432e23. It's too late for this to be in the release.
| * Define if-let* and derivatives as aliases for if-let etcMichael Heerdegen2018-03-061-111/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit reverts declaring `if-let' and `when-let' obsolete in favor of the new `if-let*' and `when-let*' versions because of the compiler warning mess (Bug#30039). Instead we make foo-let* aliases for foo-let. The old single-tuple variable spec case is still supported for backward compatibility. * lisp/emacs-lisp/subr-x.el (if-let, when-let): Don't declare obsolete. Tweak edebug specs. (and-let): Renamed from `and-let*' for compatibility with the names `if-let' and `when-let'. (if-let*, when-let*, and-let*): Define as aliases for `if-let', `when-let' and `and-let'. * test/lisp/emacs-lisp/subr-x-tests.el (if-let-single-tuple-case-test) (when-let-single-tuple-case-test): New tests for the single-binding tuple case. In the whole file, prefer the names without "*".
* | ; Revert "; Tracing for eieio-test random failure (Bug#24503)"Noam Postavsky2018-03-102-21/+1
| | | | | | | | The tracing seems to prevent the bug from happening.
* | * test/Makefile.in (check-declare): New PHONY rule.Glenn Morris2018-03-091-0/+6
| |
* | Quieten --without-json compilation of json-tests.elGlenn Morris2018-03-091-0/+5
| | | | | | | | | | * test/src/json-tests.el (json-serialize, json-insert) (json-parse-string, json-parse-buffer): Declare.
* | * test/lisp/vc/vc-tests.el (w32-application-type): Fix declaration.Glenn Morris2018-03-091-1/+1
| |