summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Calc: make tests less chattyMattias Engdegård2020-10-131-60/+55
| | | | | | * test/lisp/calc/calc-tests.el (calc-extract-units, calc-convert-units) (calc-matrix-determinant, calc-choose): Remove "Working..." messages. (calc-tests--check-choose, calc-tests--explain-choose): Eliminate.
* Allow creating unibyte strings from Emacs modulesLars Ingebrigtsen2020-10-132-0/+17
| | | | | | | | | | | | | | | * doc/lispref/internals.texi (Module Values): Document make_unibyte_string (bug#34873). * src/emacs-module.c (module_make_unibyte_string): New function. (initialize_environment): Export it. * src/module-env-25.h: Define it. * test/data/emacs-module/mod-test.c (Fmod_test_return_unibyte): Test it. * test/src/emacs-module-tests.el (module/unibyte): Test it.
* ; Fix dbus-tests.el formattingMichael Albinus2020-10-121-2/+4
|
* Add interface arg to D-Bus PropertiesChanged signal.Hugh Daschbach2020-10-121-5/+6
| | | | | | | | * lisp/net/dbus.el (dbus-register-property, dbus-property-handler): Fix signal generation. (Bug#43936) * test/lisp/net/dbus-tests.el (dbus-test06-register-property-emits-signal): Fix test.
* Convert url-domsuf.el tests to ertStefan Kangas2020-10-111-0/+51
| | | | | * lisp/url/url-domsuf.el: Move commented out tests from here... * test/lisp/url/url-domsuf-tests.el: ...to this new file.
* Merge from origin/emacs-27Glenn Morris2020-10-102-206/+120
|\ | | | | | | | | | | | | | | c00606171f (origin/emacs-27) A better fix for bug#43886 3196fd44c3 Avoid crashes when a theme is loaded with one frame suspended 0407b15500 Removed an incorrectly placed extra word in the semantic docs 040dcbe53e Fix current-line hscrolling when overlays change c56eeba2ce Extend tests for shell-command-dont-erase-buffer
| * Extend tests for shell-command-dont-erase-bufferMichael Albinus2020-10-082-206/+120
| | | | | | | | | | | | | | | | | | * test/lisp/simple-tests.el (simple-tests-shell-command-dont-erase-buffer): Extend test. * test/lisp/net/tramp-tests.el (tramp-test32-shell-command-dont-erase-buffer): Adapt test. Tag it :unstable.
* | Improve coverage of Calc bit shift testMattias Engdegård2020-10-101-5/+10
| | | | | | | | | | * test/lisp/calc/calc-tests.el (calc-tests--rsh, calc-tests--rash) (calc-shift-binary): Test with negative word sizes.
* | ; shorten https://lists.gnu.org/archive/html/... linksStefan Kangas2020-10-091-1/+1
| |
* | ; Fix typosStefan Kangas2020-10-094-6/+6
| |
* | Calc: fix arithmetic right shift sign bit detectionMattias Engdegård2020-10-091-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | Arithmetic right shift didn't compute the bit to shift in correctly. For example, #x600000000 right-shifted 8 steps (with 32 bit word size) resulted in #xff000000 rather than 0. (Bug#43764) * lisp/calc/calc-bin.el (calcFunc-ash): Fix condition. * test/lisp/calc/calc-tests.el (calc-tests--clip, calc-tests--lsh) (calc-tests--rsh, calc-tests--ash, calc-tests--rash, calc-tests--rot): New. (calc-shift-binary): New test.
* | Match OpenBSD doas password prompt in comintNick Gasson2020-10-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | * lisp/comint.el (comint-password-prompt-regexp): match OpenBSD doas password prompt. OpenBSD 5.8 replaced sudo with doas in the base install. * test/lisp/comint-tests.el (comint-testsuite-password-strings): test that the doas password prompt is matched (bug#43846). Copyright-paperwork-exempt: yes
* | * test/lisp/progmodes/ruby-mode-tests.el: Fix obsolete warningsStefan Monnier2020-10-061-12/+12
| |
* | Suppress obsoletion warning in test of obsolete rx functionMattias Engdegård2020-10-061-1/+4
| | | | | | | | | | * test/lisp/emacs-lisp/rx-tests.el (rx-compat): Add byte-compilation warning suppression.
* | Fix animate test that somehow changed recentlyLars Ingebrigtsen2020-10-061-2/+2
| |
* | Fix mule-util-tests after recent truncation changesLars Ingebrigtsen2020-10-061-2/+3
| | | | | | | | * test/lisp/international/mule-util-tests.el: Fix truncation checks.
* | cperl-mode: Fix a test to ensure cperl-mode is activeHarald Jörg2020-10-062-2/+4
| | | | | | | | | | | | | | | | | | | | * test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-test-indent-exp): Make sure that cperl-mode is active for testing 'cperl-indent-exp', also skip this test under perl-mode. * test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl: Eliminate dependency on unrelated customizable variables (bug#10483).
* | * src/dbusbind.c (xd_signature): Better type check for array elements.Michael Albinus2020-10-051-11/+30
| | | | | | | | * test/lisp/net/dbus-tests.el (dbus-test01-compound-types): Extend test.
* | * src/xdisp.c (syms_of_xdisp): New var `redisplay_skip_initial_frame`.Stefan Monnier2020-10-041-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to run most of the redisplay code (tho not the actual drawing since there's nowhere to draw) even when there's no real frame at hand, as is the case in batch mode. This makes `xdisp-tests--minibuffer-resizing` work even in batch. (redisplay_internal): Obey it. (init_xdisp): Set `echo_area_window` even in noninteractive mode. * src/dispnew.c (update_frame): Skip the initial frame. * src/frame.c (make_frame): Use 80x25 as the default initial size. * test/src/xdisp-tests.el (xdisp-tests--minibuffer-resizing): Use the new var and fix use of `executing-kbd-macro`.
* | Make dbus-unregister-object work for monitorsMichael Albinus2020-10-041-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/dbus.texi (Monitoring Messages): Rename from "Monitoring Events". (Register Objects, Monitoring Messages): Mention returned object. * lisp/net/dbus.el (dbus-unregister-object): Adapt docstring. (dbus-unregister-object): Delete monitor if needed. (dbus-register-monitor): Return proper object. * src/dbusbind.c (dbus-registered-objects-table): Adapt docstring. * test/lisp/net/dbus-tests.el (dbus--test-signal-handler): Adapt docstring. (dbus-test08-register-monitor): New test.
* | ; Fix more typosStefan Kangas2020-10-034-6/+6
| |
* | Enhance syntax-tests.el to test comments in parse-partial-sexpAlan Mackenzie2020-10-022-10/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | This now tests the interface between parse-partial-sexp and the low level comment function in syntax.c * test/src/syntax-tests.el (syntax-comments-midpoint): New function. (syntax-pps-comments): New macro. (top level): Two new syntax-br-comments tests and five new syntax-pps-comments tests. * test/data/syntax-comments.txt (top level): Amend some test fragments and add some more.
* | Calc: fix formatting and parsing Unix time (bug#43759)Mattias Engdegård2020-10-021-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | The number of days from epoch to Jan 1, 1970 that was used in parsing and formatting Unix time was incorrect. The previous fix (in e368697ce36) was incomplete. Reported by Vincent Belaïche. * lisp/calc/calc-forms.el (math-unix-epoch): New constant. (math-format-date-part, math-parse-standard-date, calcFunc-unixtime): Use math-unix-epoch instead of a constant that is sometimes wrong. * test/lisp/calc/calc-tests.el (calc-unix-date): New test.
* | Enhance syntax-tests.el to test comments in scan-listsAlan Mackenzie2020-10-022-19/+95
| | | | | | | | | | | | | | | | | | | | This now tests the interface between scan_lists and the comment functions. * test/src/syntax-tests.el (syntax-br-comments): New macro. ({-in, ;-in, /*-in): Set parse-sexp-ignore-comments to t. (top level): Add 15 tests for comments inside brace lists. * test/data/syntax-comments.txt (top level): Amend some test fragments.
* | Merge from origin/emacs-27Glenn Morris2020-10-026-8/+9
|\| | | | | | | | | | | | | | | | | 78eacf31e8 ; Fix many typos in symbols in docs and comments d5d12707d6 * doc/misc/flymake.texi (Using Flymake): Fix a typo. (Bug... # Conflicts: # lisp/allout.el # lisp/progmodes/ebrowse.el
| * ; Fix many typos in symbols in docs and commentsStefan Kangas2020-10-026-8/+9
| |
| * 2020-03-29 Michael R. Mauger <michael@mauger.com>Michael R. Mauger2020-10-011-1/+7
| | | | | | | | | | | | | | | | * lisp/progmodes/sql.el (sql-add-product): Re-correct argument spec. Previous change was due to my mistake; I have resolved back to the prior behavior (Bug#39960). * test/lisp/progmodes/sql-tests.el (sql-test-add-product): Added test to insure I don't make the same mistake again.
| * Fix out-of-source ‘make check’ emacs-module-testsPaul Eggert2020-09-252-3/+4
| | | | | | | | | | | | | | | | | | | | | | Problem reported by Koki Fukuda in: https://lists.gnu.org/r/emacs-devel/2020-07/msg00169.html * test/Makefile.in (MODULE_CFLAGS): Include from the same directories included from in ../src. * test/src/emacs-module-tests.el (module/describe-function-1): Strip path to source directory. (cherry picked from commit c86f3fe0d023cdd25edbbce91c5b32654f2b734e)
* | Calc: fix business days calculation (bug43677)Mattias Engdegård2020-10-021-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The calculation of business days was broken in 2012 (probably 310e60d9454fe2 or thereabouts) when the date representation changed epoch so that Jan 1, 1 AD became day number 1 instead of 0. Repair this, along with an unrelated bug that prevented arbitrary holiday weekdays from working. Reported by Aaron Zeng. * lisp/calc/calc-forms.el (math-to-business-day) (math-from-business-day): Correct calculation of weekdays using Calc's current (Rata Die) chronology. Modify loop condition to cope with odd sets of holiday weekdays. * test/lisp/calc/calc-tests.el (calc-business-days): New test.
* | Stop using a dynamically bound 'generated-autoload-file' variableLars Ingebrigtsen2020-10-021-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/loading.texi (Autoload): Document change of name (bug#39823). * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Pass the file name in. (autoload-generated-file): Ditto. (autoload-file-load-name): Ditto. (generate-file-autoloads): Ditto. (autoload--setup-output): Ditto. (autoload-generate-file-autoloads): Ditto, and alter doc string to reflect when `generated-autoload-file' is heeded. (update-file-autoloads): Pass outfile in to functions. (autoload-find-destination): Ditto. (update-directory-autoloads): Make into an obsolete shim around `make-directory-autoloads'. (make-directory-autoloads): Renamed from `update-directory-autoloads' with new semantics. (batch-update-autoloads): Adjust caller. * lisp/emacs-lisp/package.el (package-generate-autoloads): Adjust caller.
* | Fix bug in wdired-get-filenameTino Calancha2020-10-011-0/+16
| | | | | | | | | | | | * lisp/wdired.el (wdired-get-filename): Acknowledge the first argument (bug#39280). * test/lisp/wdired-tests.el (wdired-test-bug39280): Add test.
* | Enhance syntax-tests.el to test some comment character handling.Alan Mackenzie2020-10-012-0/+256
| | | | | | | | | | | | | | * test/src/syntax-tests: Add a new section testing some aspects of comment handling in syntax.c. This needs further enhancement. It uses .... * test/data/syntax-comments.txt: A new test file.
* | Silence byte-compiler in two testsStefan Kangas2020-10-012-2/+3
| | | | | | | | | | | | * test/lisp/obsolete/cl-tests.el (require): * test/lisp/simple-tests.el (simple-test-count-words-bug-41761): Silence byte-compiler.
* | Remove mml-sec-test that assumes the first signatureLars Ingebrigtsen2020-10-011-31/+0
| | | | | | | | | | This is no longer supported; the user is asked for what signature to use.
* | Make gnus-base64-repad a bit stricter againAlex Bochannek2020-10-011-5/+8
| | | | | | | | | | * lisp/gnus/gnus-util.el (gnus-base64-repad): Make the code a bit stricter again.
* | Query for the signer when sending signed mail (with unknown signer)Robert Pluim2020-10-011-1/+0
| | | | | | | | | | | | | | | | | | * lisp/gnus/mml-sec.el (mml-secure-sender-sign-query): New function (bug#40118). (mml-secure-epg-sign): Use it to determine the signer (bug#40118). * lisp/gnus/mml-sec.el (mml-secure-allow-signing-with-unknown-recipient): Remove.
* | Fix 'move-to-column' when invisible text follows a TABEli Zaretskii2020-09-301-0/+59
| | | | | | | | | | | | | | | | | | | | | | * src/indent.c (scan_for_column): Accept 2 more arguments, and report through them the position corresponding to PREVCOL. All callers changed. (Fmove_to_column): Use the prev_col's position to test for a TAB instead of assuming that the TAB is just before point (which is false when there's invisible text around). (Bug#43587) * test/src/indent-tests.el: New file.
* | Stricter checks for D-Bus compound types.Michael Albinus2020-09-301-25/+29
| | | | | | | | | | | | | | | | * src/dbusbind.c (XD_DBUS_TYPE_P, Fdbus__init_bus) (xd_read_queued_messages): Use Fkeywordp instead of SYMBOLP. (xd_signature): Stricter checks for compound types. * test/lisp/net/dbus-tests.el (dbus-test01-compound-types): Extend test.
* | Minor code cleanup in dbus-tests.elMichael Albinus2020-09-301-33/+30
| | | | | | | | | | | | | | | | | | | | * test/lisp/net/dbus-tests.el (dbus--tests-dir): Make it a defconst. (dbus--test-method-reentry-handler): Mark args as unused. (dbus-test04-method-reentry): Tag it :expensive-test. Fix typo. (dbus-test06-property-types): Remove duplicate test. (dbus--test-introspect): Use `insert-file-contents-literally'. (dbus--test-validate-property): Mark expected-annotations as unused. (dbus--test-validate-m-or-s): Remove superfluous le-clause.
* | Add D-Bus method-call reentrant testHugh Daschbach2020-09-301-0/+34
| | | | | | | | | | | | * test/lisp/net/dbus-tests.el (dbus--tests-method-reentry-handler): New defun. (dbus-test04-method-reentry): New test. (Bug#43251)
* | * test/lisp/net/dbus-tests.el: Add timeout tests.Hugh Daschbach2020-09-301-0/+38
| | | | | | | | | | (dbus-test04-call-method-timeout, dbus-test07-introspection-timeout): New tests.
* | Add D-Bus introspection testsHugh Daschbach2020-09-302-0/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/dbus.el (dbus-annotation-deprecated): New defconst. * test/lisp/net/dbus-tests.el (dbus--tests-dir): New defvar. (dbus--test-introspect, dbus--test-validate-interface) (dbus--test-validate-annotations, dbus--test-validate-property) (dbus--test-validate-m-or-s, dbus--test-validate-signal) (dbus--test-validate-method): New defuns. (dbus-test07-introspection): New test. * test/lisp/net/dbus-resources/org.gnu.Emacs.TestDBus.xml: New test data.
* | * test/lisp/net/dbus-tests.el: Add property tests. (Bug#43252)Hugh Daschbach2020-09-301-0/+396
| | | | | | | | | | | | (dbus--test-run-property-test, dbus--test-property): New defuns. (dbus-test06-property-types): New test for property registration, set, get.
* | Fix gnus-base64-repad test failuresLars Ingebrigtsen2020-09-301-6/+3
| |
* | More strict D-Bus type checkingMichael Albinus2020-09-291-11/+62
| | | | | | | | | | | | | | | | | | | | * lisp/net/dbus.el (dbus-register-monitor): Register proper key. (dbus-monitor-handler): Adapt docstring. Use grave text-quoting-style. * src/dbusbind.c (xd_signature, xd_append_arg): More strict tests. (syms_of_dbusbind): Adapt docstring. * test/lisp/net/dbus-tests.el (dbus-test01-basic-types): Extend test.
* | Repad the Face header in GnusAlex Bochannek2020-09-281-0/+98
| | | | | | | | | | | | * lisp/gnus/gnus-fun.el (gnus-convert-face-to-png): Use it. * lisp/gnus/gnus-util.el (gnus-base64-repad): New function (bug#43441).
* | Fix Gnus parsing of weekly recurring icalendar eventsJan Tatarik2020-09-281-51/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:recurring-interval): Fix parsing of weekly recurring events (bug#43669). Example: in the absence of explicit INTERVAL value in the calendar event, a weekly event with occurrences scheduled for Mondays and Wednesdays should receive the default recurring interval of "1" and the org mode timestamp repeater should be "+1w". Due to a bug in the current code we receive "WEEKLY" and "+WEEKLYw" instead. The patch fixes the issue.
* | Document D-Bus monitoringMichael Albinus2020-09-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/dbus.texi: Replace "symbol" by "keyword" where appropriate. (Alternative Buses): Adapt dbus-init-bus description. (Errors and Events): Adapt dbus-event structure. New defuns dbus-event-destination-name, dbus-event-handler and dbus-event-arguments. (Monitoring Events): New node. * lisp/net/dbus.el: Replace "symbol" by "keyword" where appropriate. (cl-lib): Require. (dbus-register-monitor): Adapt the argument list. (dbus-monitor-handler): Extend. (dbus-init-bus): Adapt docstring. * test/lisp/net/dbus-tests.el (dbus-test01-compound-types): Skip if needed. Extend test.
* | Minor string-search optimisations (bug#43598)Mattias Engdegård2020-09-271-2/+20
| | | | | | | | | | | | | | * src/fns.c (Fstring_search): Perform cheap all-ASCII checks before more expensive ones. Use a faster loop when searching for non-ASCII non-raw bytes. * test/src/fns-tests.el (string-search): Add more test cases.
* | ; * test/lisp/subr-tests.el (string-replace): Add more test casesMattias Engdegård2020-09-271-0/+13
| |