summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2015-02-08 15:22:14 +0100
committerAndreas Politz <politza@hochschule-trier.de>2015-02-08 15:22:14 +0100
commit260500d7481102242dfa6538d6eead80c86ba4a2 (patch)
treec4954ef98a8f3a47a03390a772f2c76ff2c4a9be
parent4d5e4c3ee4bb193726fc804cdad049b6f1ef240c (diff)
Compatibility with older Emacs.
* test/pdf-info.ert(skip-unless): Fake skipped tests as accepted failures.
-rw-r--r--test/pdf-info.ert11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pdf-info.ert b/test/pdf-info.ert
index 68a6acf..4e832bf 100644
--- a/test/pdf-info.ert
+++ b/test/pdf-info.ert
@@ -1,4 +1,15 @@
+;; -*- lexical-binding: t -*-
+
(require 'pdf-info)
+(require 'ert)
+
+;; Fake skipped as accepted failures if skip-unless is not available.
+(unless (fboundp 'ert--skip-unless)
+ (defun skip-unless (arg)
+ (setf (ert-test-expected-result-type
+ (car ert--running-tests))
+ :failed)
+ (ert-fail (list nil))))
(defmacro pdf-test-with-test-pdf (&rest body)
(declare (indent 0) (debug t))