summaryrefslogtreecommitdiff
path: root/test
Commit message (Expand)AuthorAgeFilesLines
* Stop some python tests leaving temp-files behind...* test/automated/python-tests.el (python-shell-make-comint-1) (python-shell-make-comint-2, python-shell-get-process-1): Suppress creation of some temp-files. Glenn Morris2013-11-232-3/+13
* Use skip-unless in some python tests...* test/automated/python-tests.el (python-shell-parse-command-1) (python-shell-make-comint-1, python-shell-make-comint-2) (python-shell-get-process-1) (python-shell-internal-get-or-create-process-1): Skip rather than fail if prereqs not found. Glenn Morris2013-11-232-15/+11
* Empty elements in EMACSLOADPATH now stand for the default...* src/lread.c (load_path_check): Take path to check as argument. (load_path_default): New, split from init_lread. (init_lread): Move calc of default load-path to load_path_default. Empty elements in EMACSLOADPATH now stand for the default. (load-path): Doc fix. * src/emacs.c (decode_env_path): Add option to treat empty elements as nil rather than ".". * src/callproc.c (init_callproc_1, init_callproc): * src/image.c (Vx_bitmap_file_path): * src/lisp.h (decode_env_path): * lread.c (Vsource_directory): Update for new argument spec of decode_env_path. * leim/Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting. * lisp/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting. * test/automated/Makefile.in (emacs): Empty EMACSLOADPATH rather than unsetting. * doc/emacs/cmdargs.texi (General Variables): Empty elements in EMACSLOADPATH now mean the default load-path. * doc/lispref/loading.texi (Library Search): Empty elements in EMACSLOADPATH now mean the default load-path. * etc/NEWS: Mention this. Fixes: debbugs:12100 Glenn Morris2013-11-222-2/+6
* Add missing ChangeLog entriesBozhidar Batsov2013-11-221-0/+7
* * automated/ruby-mode-tests.el (ruby-exit!-font-lock): Set expected-result.Glenn Morris2013-11-212-1/+7
* * test/automated/Makefile.in: Tweak previous changeGlenn Morris2013-11-201-1/+1
* * test/automated/Makefile.in (XARGS_LIMIT): New, set by configure....(compile-main): Pass XARGS_LIMIT to xargs. (Cargo-culted from lisp/Makefile.in.) Glenn Morris2013-11-202-1/+8
* Use path-separator with -L, rather than just :...* lisp/startup.el (command-line-1): Use path-separator with -L. * test/automated/Makefile.in (PATH_SEPARATOR): New, set by configure. (EMACSOPT): Use PATH_SEPARATOR. * doc/emacs/cmdargs.texi (Action Arguments): Use path-separator with -L. * etc/NEWS: Related edit. Glenn Morris2013-11-202-1/+10
* * test/automated/ruby-mode-tests.el:...Add a few tests for `ruby--insert-coding-comment'. Bozhidar Batsov2013-11-201-0/+20
* * test/automated/ruby-mode-tests.el:...Add a failing test for bug #15874. Bozhidar Batsov2013-11-201-0/+3
* Improve API of recently-added bool vector functions....The old API had (bool-vector-count-matches A B) and (bool-vector-count-matches-at A B I), which gave the misleading impression that the two functions were variants, one with a location I. The new API has (bool-vector-count-population A) and (bool-vector-count-consecutive A B I) to make the distinction clearer. The first function no longer has a B argument, since the caller can easily determine the number of nils if the length and number of ts is known. * src/data.c (Fbool_vector_count_population): Rename from bool_vector_count_matches, and accept just 1 argument. (Fbool_vector_count_consecutive): Rename from Fbool_vector_count_matches_at. * test/automated/data-tests.el: Adjust to API changes. Fixes: debbugs:15912 Paul Eggert2013-11-182-24/+27
* * lisp/progmodes/ruby-mode.el (ruby-toggle-block): Don't stop at...interpolation curlies. Fixes: debbugs:15914 Adam Sokolnicki2013-11-171-0/+6
* * automated/tramp-tests.el (tramp-test07-file-exists-p)...(tramp-test08-file-local-copy) (tramp-test09-insert-file-contents, tramp-test10-write-region) (tramp-test11-copy-file, tramp-test12-rename-file) (tramp-test13-make-directory, tramp-test14-delete-directory) (tramp-test15-copy-directory, tramp-test16-directory-files) (tramp-test17-insert-directory, tramp-test18-file-attributes) (tramp-test19-directory-files-and-attributes) (tramp-test20-file-modes, tramp-test21-file-links) (tramp-test22-file-times, tramp-test23-visited-file-modtime) (tramp-test24-file-name-completion, tramp-test25-load) (tramp-test26-process-file, tramp-test27-start-file-process) (tramp-test28-shell-command): Cleanup connection initially. Michael Albinus2013-11-162-2/+106
* * automated/tramp-tests.el (tramp-test29-utf8): Cleanup the...connection before running the test. Reenable last test case. Michael Albinus2013-11-152-4/+13
* * automated/tramp-tests.el (tramp-test29-utf8): Comment last test... case, it fails in batch mode. Needs further investigations. Michael Albinus2013-11-151-3/+3
* * automated/tramp-tests.el (tramp-test15-copy-directory)...(tramp-test16-directory-files, tramp-test17-insert-directory) (tramp-test18-file-attributes) (tramp-test19-directory-files-and-attributes) (tramp-test20-file-modes, tramp-test21-file-links) (tramp-test22-file-times, tramp-test23-visited-file-modtime) (tramp-test24-file-name-completion, tramp-test25-load) (tramp-test26-process-file, tramp-test27-start-file-process): (tramp-test28-shell-command): Protect unwindforms with `ignore-errors'. (tramp-test29-utf8): New test. Michael Albinus2013-11-152-27/+72
* * automated/file-notify-tests.el (file-notify-test02-events)...(file-notify-test03-autorevert): Suppress messages in `write-region'. * automated/tramp-tests.el (tramp-test02-file-name-dissect) (tramp-test03-file-name-defaults, tramp-test21-file-links): Add tests. (tramp-test26-process-file, tramp-test28-shell-command): Ensure, that the directory is not empty when calling "ls". Michael Albinus2013-11-133-73/+128
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Disambiguate between...binary "|" operator and closing block args delimiter. Remove FIXME comment referring to Ruby 1.8-only syntax. (ruby-smie--implicit-semi-p): Not after "|" operator. (ruby-smie--closing-pipe-p): New function. (ruby-smie--forward-token, ruby-smie--backward-token): Use it. (ruby-smie-rules): Indent after "|". Dmitry Gutov2013-11-121-0/+3
* * automated/tramp-tests.el (tramp-test-temporary-file-directory):...Check $TRAMP_TEST_TEMPORARY_FILE_DIRECTORY. (tramp-read-passwd): Check $TRAMP_TEST_ALLOW_PASSWORD. (tramp-test09-insert-file-contents, tramp-test10-write-region): (tramp-test26-process-file): Add tests. (tramp-test11-copy-file): Remove debug message. (tramp-test20-file-modes): Special case, if user is "root". Michael Albinus2013-11-112-24/+72
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):...Not after "||". (ruby-smie-rules): Indent non-hanging "begin" blocks as part of their parent. Dmitry Gutov2013-11-091-2/+7
* * automated/file-notify-tests.el:...* automated/tramp-tests.el: Add `tramp-own-remote-path' to `tramp-remote-path' when running on hydra. (tramp-test07-file-exists-p): Remove instrumentation code. (tramp-test26-process-file): Don't use "/bin/true" and "/bin/false", these paths do not exist on hydra. Michael Albinus2013-11-083-29/+27
* * automated/tramp-tests.el: Add `tramp-own-remote-path' to `tramp-remote-path'.Michael Albinus2013-11-082-0/+9
* Rename test/automated/sentinel-tests.el to process-tests.elStefan Monnier2013-11-072-1/+1
* * indent/ruby.rb: New exampleDmitry Gutov2013-11-081-0/+7
* * test/automated/sentinel-tests.el: New file.Helmut Eller2013-11-072-0/+57
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Improve precedences...of "and", "or", "&&" and "||". (ruby-smie--args-separator-p): Prohibit keyword "do" as the first argument. Prohibit opening curly brace because it could only be a block opener in that position. (ruby-smie--forward-token, ruby-smie--backward-token): Separate "|" from "&" or "*" going after it. That can happen in block arguments. (ruby-smie--indent-to-stmt): New function, seeks the end of previous statement or beginning of buffer. (ruby-smie-rules): Use it. (ruby-smie-rules): Check if there's a ":" before a curly block opener candidate; if there is, it's a hash. * test/indent/ruby.rb: New examples. Dmitry Gutov2013-11-082-2/+33
* * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):...No implicit semi after "^", "and" or "or". (ruby-smie-grammar): New tokens: "and" and "or". (ruby-smie--args-separator-p): Fix the check for tokens at POS. Exclude "and" and "or". Remove "do" in order to work around token priorities. (ruby-smie-rules): Add all infix tokens. Handle the case of beginning-of-buffer. Dmitry Gutov2013-11-071-0/+12
* * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Lower priority of..."." compared to "do". Dmitry Gutov2013-11-071-3/+1
* Guard against possible accidental matches with parent dirs in Makefiles...* lisp/Makefile.in (setwins_almost, setwins_for_subdirs): Avoid accidental matches. * test/automated/Makefile.in (setwins): Avoid accidental matches. Glenn Morris2013-11-062-3/+6
* * automated/tramp-tests.el (tramp-test07-file-exists-p):...Fix docstring. Instrument, in order to hunt failure on hydra. Michael Albinus2013-11-062-4/+20
* Skip some tests rather than expect failure when prereqs not met...* automated/flymake-tests.el (warning-predicate-rx-gcc) (warning-predicate-function-gcc, warning-predicate-rx-perl) (warning-predicate-function-perl): * automated/info-xref.el (info-xref-test-makeinfo): * automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781) (vc-bzr-test-faulty-bzr-autoloads): Skip rather than expect failure. Glenn Morris2013-11-054-18/+17
* * automated/tramp-tests.el: New file.Michael Albinus2013-11-052-0/+999
* Get rid of --chdir usage in test/automated...* test/automated/Makefile.in (EMACSOPT): Move -L here. (emacs): Set EMACS_TEST_DIRECTORY in the environment. (setwins): Don't assume called from srcdir. Remove legacy stuff. (.el.elc): No more need to pass -L here. (compile-main): Get rid of sub-shell and cd. (compile-clean, check): Get rid of cd. Glenn Morris2013-11-042-11/+19
* Make it possible to run tests with a different working directory...* test/automated/flymake-tests.el (flymake-tests-data-directory): New. (flymake-tests--current-face): Use flymake-tests-data-directory. (warning-predicate-function-gcc, warning-predicate-rx-perl) (warning-predicate-function-perl): Adapt for above change. * test/automated/zlib-tests.el (zlib-tests-data-directory): New. (zlib--decompress): Use zlib-tests-data-directory. Glenn Morris2013-11-043-12/+25
* * test/automated/eieio-tests.el (eieio-test-37-persistent-classes):...Remove test that makes no sense. It simply loads a file that contains some tests. Loading the file does not run the tests, and the test are already being run independently (which obviously involves loading the file), since every .el file in this directory is automatically used in that way. Glenn Morris2013-11-042-3/+3
* * test/automated/files.el (files-test-local-variable-data): Fix result typo...presumably caused by interference from dir-locals. (file-test--do-local-variables-test): Prevent dir-locals interfering. Glenn Morris2013-11-042-1/+9
* * test/indent/ruby.rb: Move a now-successful example.Dmitry Gutov2013-11-042-4/+5
* * lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)...(ruby-smie--backward-token): Tokenize heredocs as semicolons. * test/automated/ruby-mode-tests.el: Remove outdated comment. * test/indent/ruby.rb: Add a statement on the line after heredoc. Dmitry Gutov2013-11-043-2/+7
* * test/automated/Makefile.in (abs_srcdir): Remove....(emacs): Unset EMACSLOADPATH. (.el.elc, check): Use -L to append srcdir to load-path. Glenn Morris2013-11-032-4/+10
* test/automated: Use relative filename for emacs executable...* Makefile.in (check): Depend on all. * test/automated/Makefile.in (abs_top_builddir): Remove variable. (EMACS): Use a relative file name. (lisp-compile): Remove (assume it's up-to-date). (compile-main): Do not run lisp-compile. (check): Use --chdir. Glenn Morris2013-11-022-17/+14
* test/automated/Makefile.in remove stuff unnecessarily copied from lisp...* test/automated/Makefile.in (abs_top_srcdir): Remove variable. (emacs): Use abs_srcdir rather than abs_top_srcdir. (doit, compile, compile-always): Remove stuff copied from lisp/. (all, check, bootstrap-clean, distclean, maintainer-clean): Declare PHONY. Remove comments copied from lisp/. Glenn Morris2013-11-022-49/+14
* * test/automated/Makefile.in (abs_srcdir): New, set by configure.Glenn Morris2013-11-022-0/+2
* * automated/Makefile.in (test): Remove variable....(compile-main, compile-clean, compile-always, bootstrap-clean) (check): Use srcdir rather than $test. Check cd return value. (compile-always): Depend on bootstrap-clean. Glenn Morris2013-11-022-10/+11
* Minor simplifications for test/automated/Makefile...* test/automated/Makefile.in (top_builddir, abs_test, abs_lispsrc, lisp): Remove variables. (emacs): Use abs_top_srcdir, abs_srcdir rather than abs_lispsrc, abs_test. (lisp-compile): Use ../../lisp rather than $lisp. Glenn Morris2013-11-022-6/+10
* * lisp/progmodes/ruby-mode.el (ruby-smie--rule-parent-skip-assign): New...function, replacement for `smie-rule-parent' for when we want to skip over our direct parent if it's an assignment token.. (ruby-smie-rules): Use it. Dmitry Gutov2013-11-021-0/+8
* * automated/ert-tests.el (ert-test-stats-set-test-and-result):...Add a skipping test. Michael Albinus2013-10-312-2/+23
* * src/eval.c (run_hook_with_args): Use FUNCTIONP....* test/indent/css-mode.css (.x2): Test alignement inside braces. * test/indent/prolog.prolog: Test alignment of ->; with operator at bol. Stefan Monnier2013-10-294-6/+26
* * lisp/progmodes/ruby-mode.el (ruby-smie--bosp): Anything that goes...after `=' is probably a new expression. Dmitry Gutov2013-10-271-0/+5
* * test/indent/ruby.rb: New failing example.Dmitry Gutov2013-10-262-0/+6
* * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Be more...specific in what the first arg can be: a non-keyword word, string/regexp/percent literal opener, opening paren, or unary operator followed directly by word. * test/automated/ruby-mode-tests.el (ruby-toggle-block-to-brace): Fix the test, in respect to adding the space after the curly. Dmitry Gutov2013-10-263-14/+20