branch: externals/compat
commit 88ab7dd9a57aa69ae04e498ad645384ca0e1bb35
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>
Install nadvice in the tests if necessary
This is only really relevant for Emacs 24.3.
---
compat-tests.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/compat-tests.el b/compat-tests.el
index 1acd9631f8..820927e6ac 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -121,6 +121,11 @@ the compatibility function."
+(require 'package)
+(package-initialize)
+(unless (package-installed-p 'nadvice)
+ (package-install 'nadvice))
+
(ert-deftest compat-string-search ()
"Check if `compat--string-search' was implemented correctly."
(compat-test string-search