]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/automated/package-x-test.el: Do not mess with load-path.
authorGlenn Morris <rgm@gnu.org>
Thu, 26 Jun 2014 07:34:09 +0000 (00:34 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 26 Jun 2014 07:34:09 +0000 (00:34 -0700)
test/ChangeLog
test/automated/package-x-test.el

index fbbc0f9de512480fa09848454c700a569e08b4f0..7ad0e9a4b9dad244b2e9ca757ef3c47342071ef8 100644 (file)
@@ -1,5 +1,7 @@
 2014-06-26  Glenn Morris  <rgm@gnu.org>
 
+       * automated/package-x-test.el: Do not mess with load-path.
+
        * automated/Makefile.in (%.log): If error, dump log to stdout.
 
 2014-06-26  Stefan Monnier  <monnier@iro.umontreal.ca>
index cce51b63561331850ed2528a9baae9d4648eee0a..d58915e7c7b78bd7282fe0ec3de81b6c5636de48 100644 (file)
 
 ;;; Commentary:
 
-;; You may want to run this from a separate Emacs instance from your
-;; main one, because a bug in the code below could mess with your
-;; installed packages.
-
-;; Run this in a clean Emacs session using:
-;;
-;;     $ emacs -Q --batch -L . -l package-x-test.el -f ert-run-tests-batch-and-exit
-
 ;;; Code:
 
 (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.
-(let ((load-path (append (list (file-name-directory (or load-file-name
-                                                        buffer-file-name)))
-                         load-path)))
-  (require 'package-test))
+(require 'package-test)
 
 (defvar package-x-test--single-archive-entry-1-3
   (cons 'simple-single