From 771b2fc3036bbb1705ccc29bc061d18c114e30b9 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 9 Jul 2013 00:11:50 -0700 Subject: [PATCH] Explictly require ert in some test/automated/*.el files * automated/add-log-tests.el, automated/advice-tests.el: * automated/imenu-test.el, automated/python-tests.el: * automated/ruby-mode-tests.el, automated/xml-parse-tests.el: Explictly require ert. --- test/ChangeLog | 7 +++++++ test/automated/add-log-tests.el | 1 + test/automated/advice-tests.el | 2 ++ test/automated/imenu-test.el | 1 + test/automated/package-x-test.el | 1 + test/automated/python-tests.el | 1 + test/automated/ruby-mode-tests.el | 1 + test/automated/xml-parse-tests.el | 1 + 8 files changed, 15 insertions(+) diff --git a/test/ChangeLog b/test/ChangeLog index 458d4df1f39..03e45d551b5 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,10 @@ +2013-07-09 Glenn Morris + + * automated/add-log-tests.el, automated/advice-tests.el: + * automated/imenu-test.el, automated/python-tests.el: + * automated/ruby-mode-tests.el, automated/xml-parse-tests.el: + Explictly require ert. + 2013-07-08 Kenichi Handa * automated/decoder-tests.el (decoder-tests-prefer-utf-8-read): diff --git a/test/automated/add-log-tests.el b/test/automated/add-log-tests.el index f6e803cd317..bd073016505 100644 --- a/test/automated/add-log-tests.el +++ b/test/automated/add-log-tests.el @@ -22,6 +22,7 @@ ;;; Code: +(require 'ert) (require 'add-log) (defmacro add-log-current-defun-deftest (name doc major-mode diff --git a/test/automated/advice-tests.el b/test/automated/advice-tests.el index 8beaea64cd9..69c15e34ed0 100644 --- a/test/automated/advice-tests.el +++ b/test/automated/advice-tests.el @@ -21,6 +21,8 @@ ;;; Code: +(require 'ert) + (ert-deftest advice-tests-nadvice () "Test nadvice code." (defun sm-test1 (x) (+ x 4)) diff --git a/test/automated/imenu-test.el b/test/automated/imenu-test.el index 83e19ebd914..b2b0c6b5c31 100644 --- a/test/automated/imenu-test.el +++ b/test/automated/imenu-test.el @@ -22,6 +22,7 @@ ;;; Code: +(require 'ert) (require 'imenu) ;; (imenu-simple-scan-deftest-gather-strings-from-list diff --git a/test/automated/package-x-test.el b/test/automated/package-x-test.el index b8f2a23f6d5..beb18358085 100755 --- a/test/automated/package-x-test.el +++ b/test/automated/package-x-test.el @@ -35,6 +35,7 @@ (require 'package-x) (require 'ert) (require 'cl-lib) +(eval-when-compile (require 'package-test)) ;; package-test is not normally in `load-path', so temporarily set ;; `load-path' to contain the current directory. diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el index 40505cc7953..c115f69be63 100644 --- a/test/automated/python-tests.el +++ b/test/automated/python-tests.el @@ -21,6 +21,7 @@ ;;; Code: +(require 'ert) (require 'python) (defmacro python-tests-with-temp-buffer (contents &rest body) diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index 02582e8ad2d..3295684dd12 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el @@ -21,6 +21,7 @@ ;;; Code: +(require 'ert) (require 'ruby-mode) (defun ruby-should-indent (content column) diff --git a/test/automated/xml-parse-tests.el b/test/automated/xml-parse-tests.el index 874ae01affb..9157a0d3002 100644 --- a/test/automated/xml-parse-tests.el +++ b/test/automated/xml-parse-tests.el @@ -27,6 +27,7 @@ ;;; Code: +(require 'ert) (require 'xml) (defvar xml-parse-tests--data -- 2.11.4.GIT