aboutsummaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Some final fixes in file notification before merging with masterMichael Albinus2015-11-251-97/+211
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify--rm-descriptor): Remove WHAT arg. (file-notify-callback): Improve check for `stopped' event. Call `file-notify-rm-watch' rather than `file-notify--rm-descriptor'. (file-notify-add-watch): In case FILE is not a directory, call the file monitor for the kqueue backend. Otherwise, call the directory monitor for the upper directory. * src/inotify.c (inotifyevent_to_event): Extract file name from watch_object if the event doesn't provide it. (Finotify_add_watch): Add file name to watch_object. * test/automated/file-notify-tests.el (file-notify--test-timeout): Use different timeouts for different libraries. (file-notify--test-with-events): Suppress lock files. Flush outstanding events before running the body. (file-notify-test02-events, file-notify-test04-file-validity): Do not skip cygwin tests. Add additional test for file creation. Adapt expected result for different backends. (file-notify-test03-autorevert): Some of the tests don't work for w32notify. (file-notify-test06-many-events): Rename into both directions.
* Rework file notifications, kqueue has problems with directory monitorsMichael Albinus2015-11-252-129/+168
| | | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-add-watch): Call the native add-watch function on the file, not on the dir. * src/kqueue.c (kqueue_compare_dir_list): Make also bookkeeping about already deleted entries. * test/automated/auto-revert-tests.el (auto-revert-test01-auto-revert-several-files): Do not call "cp -f" since this deletes the target file first. * test/automated/file-notify-tests.el (file-notify--test-event-test): Make stronger checks. (file-notify-test01-add-watch, file-notify-test02-events) (file-notify-test04-file-validity, file-notify-test05-dir-validity): Rewrite in order to call file monitors but directory monitors. (file-notify-test06-many-events): Ler rename work in both directions.
* Improve loops in file-notify-test06-many-eventsMichael Albinus2015-11-251-5/+7
| | | | | | * test/automated/file-notify-tests.el (file-notify-test06-many-events): Use `read-event' pauses for the `write-file' loops; otherwise events are lost in inotify and gfilenotify cases.
* Handle more complex rename operation in kqueueMichael Albinus2015-11-251-6/+4
| | | | | | | | | | * src/kqueue.c (pending_events): New variable. (kqueue_compare_dir_list): Handle more complex rename operation. (globals_of_kqueue): Initialize pending_events. * test/automated/file-notify-tests.el (file-notify-test06-many-events): Adapt expected events in the `rename-file' case. (file-notify-test06-many-events-remote): Declare.
* New test with a larger number of events.Wolfgang Jenkner2015-11-251-1/+40
| | | | | | | * test/automated/file-notify-tests.el (file-notify--test-with-events): Make timeout heuristically depend on the number of events. (file-notify-test06-many-events): Use it for new test.
* Further fixes for kqueue.Michael Albinus2015-11-251-17/+42
| | | | | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-callback): Raise also event if directory name matches. (file-notify-add-watch): Add `create' to the flags for `kqueue'. * src/kqueue.c (kqueue_generate_event): Use watch_object as argument instead of ident. Remove callback argument. Adapt callees. Check actions whether they are monitored flags. * test/automated/file-notify-tests.el (file-notify--test-library): New defun. (file-notify-test00-availability, file-notify-test02-events) (file-notify-test04-file-validity) (file-notify-test05-dir-validity): Use it. (file-notify-test02-events, file-notify-test04-file-validity): Add `read-event' calls between different file actions, in order to give the backends a chance to rais an event. Needed especially for kqueue. In case of deleting a directory, there are two `deleted' events.
* * test/automated/simple-test.el: Add test for bug#20698 (bug#21885)Juanma Barranquero2015-11-131-0/+17
| | | | | (simple-test--transpositions): New macro. (simple-transpose-subr): New test.
* * test/automated/keymaps-test.el: Fix test to make it repeatableJuanma Barranquero2015-11-121-7/+11
| | | | | | (keymap-store_in_keymap-FASTINT-on-nonchars): Reset Buffer-menu-mode-map entry to its initial value to make the test repeatable in interactive sessions (assuming it doesn't fail and crashes Emacs, of course).
* * test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Small fixArtur Malabarba2015-11-121-2/+2
|
* : Tests for undo-auto functionality.Phillip Lord2015-11-121-0/+33
|
* Enable sorting of JSON object keys when encodingSimen Heggestøyl2015-11-121-0/+29
| | | | | | | | | | | | | | | | | | | | | | | * lisp/json.el (json-encoding-object-sort-predicate): New variable for specifying a sorting predicate for JSON objects during encoding. (json--plist-to-alist): New utility function. (json-encode-hash-table): Re-use `json-encode-alist' when object keys are to be sorted. (json-encode-alist): Sort output by `json-encoding-object-sort-predicate, when set. (json-encode-plist): Re-use `json-encode-alist' when object keys are to be sorted. (json-pretty-print-buffer-ordered): New command to pretty print the buffer with object keys sorted alphabetically. (json-pretty-print-ordered): New command to pretty print the region with object keys sorted alphabetically. * test/automated/json-tests.el (test-json-plist-to-alist) (test-json-encode-plist, test-json-encode-hash-table) (test-json-encode-alist-with-sort-predicate) (test-json-encode-plist-with-sort-predicate): New tests. * etc/NEWS: Add an entry for the new commands.
* * test/automated/keymap-tests.el: New test fileJuanma Barranquero2015-11-121-0/+39
|
* Rename seq-p and map-p to seqp and mappNicolas Petton2015-11-111-10/+10
| | | | | | | * lisp/emacs-lisp/seq.el (seqp): New name. * lisp/emacs-lisp/map.el (mapp): New name. * doc/lispref/sequences.texi: Update the documentation for seqp. * test/automated/map-tests.el: Update the tests for mapp.
* Rename obarray-p to obarraypNicolas Petton2015-11-111-11/+11
| | | | | * lisp/obarray.el (obarrayp): New name. * test/automated/obarray-tests.el: Update the tests.
* Rename obarray-foreach to obarray-mapNicolas Petton2015-11-111-3/+3
| | | | | * lisp/obarray.el (obarray-map): New name. * test/automated/obarray-tests.el: Update the corresponding tests.
* New file with obarray functions.Przemysław Wojnowski2015-11-111-0/+90
| | | | | * lisp/obarray.el: basic obarray functions extracted from abbrev.el * test/automated/obarray-tests.el: new file
* Spelling fixesPaul Eggert2015-11-101-1/+1
| | | | | * lisp/net/soap-inspect.el (soap-inspect-xs-simple-type): Fix misspelling in output.
* * lisp/emacs-lisp/map.el (map-merge-with): New functionArtur Malabarba2015-11-101-0/+7
| | | | * test/automated/map-tests.el (test-map-merge-with): New test
* Merge branch 'project-next'Dmitry Gutov2015-11-101-4/+4
|\
| * Rename "search path" to "library roots"Dmitry Gutov2015-11-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-seq.el (cl-set-difference): Retain the order of the elements from CL-LIST1. * test/automated/cl-lib-tests.el (cl-lib-test-set-functions): Update WRT to the above change. * lisp/progmodes/project.el (project-search-path-function): Rename to project-library-roots-function, update the documentation and references. (project-search-path): Likewise, to project-library-roots. (project-roots): Clarify documentation. (project-vc-search-path): Likewise, to project-vc-library-roots. (project-library-roots): In addition to the renames, thread the results through file-name-as-directory. (project-prune-directories): Accept a variable number of arguments. Rename to project-combine-directories. (project-subtract-directories): New function. * lisp/progmodes/elisp-mode.el (elisp--xref-find-references): Append project-roots and project-library-roots together. * lisp/progmodes/etags.el (etags--xref-find-references): Ditto.
* | Add support for retrieving paths to JSON elementsSimen Heggestøyl2015-11-081-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for retrieving the path to a JSON element. This can for instance be useful to retrieve paths in deeply nested JSON structures. * lisp/json.el (json-pre-element-read-function) (json-post-element-read-function): New variables to hold pre- and post read callback functions for `json-read-array' and `json-read-object'. (json--path): New variable used internally by `json-path-to-position'. (json--record-path, json--check-position): New functions used internally by `json-path-to-position'. (json-path-to-position): New function for retrieving the path to a JSON element at a given position. (json-read-object, json-read-array): Call `json-pre-element-read-function' and `json-post-element-read-function' when set. * test/automated/json-tests.el (test-json-path-to-position-with-objects) (test-json-path-to-position-with-arrays) (test-json-path-to-position-no-match): New tests for `json-path-to-position'.
* | ;* test/automated/abbrev-tests.el: Fix a typo in a commentEli Zaretskii2015-11-081-1/+1
| |
* | Add test for bug #21824Noam Postavsky2015-11-071-0/+48
| | | | | | | | | | * test/automated/buffer-tests.el: New file. (overlay-modification-hooks-message-other-buf): New test.
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a bugArtur Malabarba2015-11-071-1/+7
| | | | | | | | | | | | | | The defsubst was being created as: (cl-defsubst name (args) ("DOC") ...) * test/automated/cl-lib-tests.el (cl-lib-struct-constructors): Add test
* | Fix error in copy-abbrev-tableEli Zaretskii2015-11-071-0/+43
| | | | | | | | | | | | | | * lisp/abbrev.el (define-abbrev): Don't erase the :abbrev-table-modiff property of the abbrev-table. (Bug#21828) * test/automated/abbrev-tests.el: New file.
* | Add test to auto-revert-tests.el for Bug#21841Michael Albinus2015-11-071-2/+66
| | | | | | | | | | | | | | * test/automated/auto-revert-tests.el (auto-revert-test01-auto-revert-several-files): New test. (auto-revert-test02-auto-revert-tail-mode) (auto-revert-test03-auto-revert-mode-dired): Rename them.
* | * test/automated/subr-tests.el (subr-test-when): Fix againArtur Malabarba2015-11-061-1/+1
| |
* | * test/automated/subr-tests.el (subr-test-when): Fix testArtur Malabarba2015-11-061-2/+9
| |
* | Skip some file notification tests for cygwinMichael Albinus2015-11-061-15/+14
|/ | | | | | | * test/automated/file-notify-tests.el (file-notify--test-with-events): Remove argument TIMEOUT. Adapt all callees. (file-notify-test02-events, file-notify-test04-file-validity): Skip for cygwin. (Bug#21804)
* * test/automated/elisp-mode-test.el: Silence some run-time warningsJuanma Barranquero2015-11-051-2/+3
| | | | (xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.
* * test/automated/process-tests.el: Skip tests when bash is not availableJuanma Barranquero2015-11-051-0/+2
| | | | | (process-test-sentinel-accept-process-output) (process-test-sentinel-sit-for): skip-unless bash executable found.
* Add test for bug #21831Eli Zaretskii2015-11-051-0/+18
| | | | | | * test/automated/process-tests.el (start-process-should-not-modify-arguments): New test. (Bug#21831) Suggested by Nicolas Richard <youngfrog@members.fsf.org>
* ; * test/automated/elisp-mode-tests.el: Fix typo.Juanma Barranquero2015-11-051-1/+1
|
* * lisp/emacs-lisp/eieio-compat.el: Typo caught by testsStefan Monnier2015-11-041-4/+0
| | | | | | (eieio--generic-static-object-generalizer): Fix typo. * test/automated/eieio-tests.el: Byte-compile it again. It looks like the underlying cause of bug#17852 was fixed in the mean time.
* * lisp/subr.el (when): Use `macroexp-progn'Artur Malabarba2015-11-041-0/+14
| | | | * test/automated/subr-tests.el (subr-test-when): New test
* ; Shorten TODO list in file-notify-tests.elMichael Albinus2015-11-031-1/+0
|
* Fix Bug#21816; case insensitive file system in elisp-mode-tests.elStephen Leake2015-11-031-7/+24
| | | | | | | * test/automated/elisp-mode-tests.el (xref-elisp-test-run): Use case-insensitive string compare for file names. (emacs-test-dir): Add 'downcase' to cause case differences (at least on my system).
* flymake-tests.el (warning-predicate-rx-gcc): Fix check.Juanma Barranquero2015-11-021-1/+1
| | | | | * test/automated/flymake-tests.el (warning-predicate-rx-gcc): Also check that "make" is available, not just "gcc".
* Document behavior of collation on CygwinKen Brown2015-11-021-0/+2
| | | | | | | * test/automated/fns-tests.el (fns-tests-collate-sort): Mark as expected failure on Cygwin. * doc/lispref/strings.texi (Text Comparison): Document that punctuation and whitespace are not ignored for sorting on Cygwin.
* * lisp/progmodes/f90.el (f90-no-block-limit):Glenn Morris2015-11-011-0/+15
| | | | | Add associate. (Bug#21794) * test/automated/f90.el (f90-test-bug21794): New test.
* Fix incompatibility with TCC in test for bug#18745Juanma Barranquero2015-11-011-3/+3
| | | | | * test/automated/process-tests.el (process-test-quoted-batfile): Remove spaces unrelated to the bug being tested.
* Fix bug#21762Juanma Barranquero2015-11-011-0/+8
| | | | | | | | | * lisp/progmodes/python.el (python-syntax-closing-paren-p): Check with `eql' instead of `=' to accommodate the case that (syntax-after (point)) returns nil. * test/automated/python-tests.el (python-indent-inside-paren-7): New test.
* * test/automated/python-tests.el: Avoid warningsJuanma Barranquero2015-11-011-5/+7
| | | | | | | | | | | | | (python-tests-with-temp-buffer, python-tests-with-temp-file): Bind `python-indent-guess-indent-offset' to nil. # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: test/automated/python-tests.el #
* Add JSX indentation via js-jsx-mode. (Bug#21799)Jackson Ray Hamilton2015-10-311-0/+85
| | | | | | * progmodes/js.el: Add JSX indentation support. (js-jsx-indent-line) (js-jsx-mode): New functions.
* Minor fix in filenotify.elMichael Albinus2015-10-311-1/+1
| | | | | | * lisp/filenotify.el (file-notify--event-file-name) (file-notify--event-file1-name): Normalize result with `directory-file-name'.
* Add result messages in vc-tests.elMichael Albinus2015-10-301-26/+37
| | | | | * test/automated/vc-tests.el (vc-test--state) (vc-test--working-revision, vc-test--checkout-model): Add result messages.
* * test/automated/faces-tests.el: Add another testArtur Malabarba2015-10-301-0/+3
|
* * test/automated/faces-tests.el: New fileArtur Malabarba2015-10-301-0/+51
|
* * test/automated/character-fold-tests.el: New fileArtur Malabarba2015-10-301-0/+58
|
* * test/automated/sort-tests.el: New fileArtur Malabarba2015-10-301-0/+106
| | | | | Tests in this file are randomly generated and then tested with regular, reverse, and case-fold sorting.