commit 79997d3b00cf256819a6bbffe36c1588e4d852b4
parent 952bd9c0b352ce9c5aee17019947845304fa0fd0
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date: Sun, 4 Sep 2016 16:42:18 +0530
Update byte compilation test to fail on errors
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/emojify-test.el b/test/emojify-test.el
@@ -14,6 +14,7 @@
(require 'org)
(require 'org-agenda)
(require 'cc-mode)
+(require 'bytecomp)
(ert-deftest emojify-tests-simple-ascii-emoji-test ()
:tags '(ascii simple)
@@ -483,11 +484,12 @@
(delete-selection-pre-hook))
(should (equal (point-min) (point-max))))))
-(ert-deftest emojify-tests-no-byte-compilation-errors ()
+(ert-deftest emojify-tests-no-byte-compilation-warnings ()
:tags '(byte-compilation)
(with-mock
(stub message => nil)
(stub byte-compile-dest-file => "/tmp/emojify.elc")
+ (stub byte-compile-warn => (error "Did not byte compile cleanly"))
(should (byte-compile-file (locate-library "emojify.el")))))
;; So that tests can be run simply by doing `eval-buffer'