aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2014-06-26 00:34:09 -0700
committerGlenn Morris <[email protected]>2014-06-26 00:34:09 -0700
commitdceff1c15aad83623d773ab6bea70be229372584 (patch)
tree181645c556234acceca7f83850a913cad66da659 /test
parentd9ca41e7a9760b23979e40053c209976f5064c42 (diff)
* test/automated/package-x-test.el: Do not mess with load-path.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog2
-rw-r--r--test/automated/package-x-test.el17
2 files changed, 3 insertions, 16 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index fbbc0f9de5..7ad0e9a4b9 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,5 +1,7 @@
2014-06-26 Glenn Morris <[email protected]>
+ * 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 <[email protected]>
diff --git a/test/automated/package-x-test.el b/test/automated/package-x-test.el
index cce51b6356..d58915e7c7 100644
--- a/test/automated/package-x-test.el
+++ b/test/automated/package-x-test.el
@@ -22,27 +22,12 @@
;;; 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