]> git.eshelyaron.com Git - emacs.git/commitdiff
Use skip-unless instead of if+message in test
authorStefan Kangas <stefan@marxist.se>
Wed, 13 Jan 2021 14:23:31 +0000 (15:23 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 13 Jan 2021 14:23:31 +0000 (15:23 +0100)
* test/lisp/cedet/semantic-utest.el (semantic-utest-Javascript):
Use skip-unless instead of if+message.

test/lisp/cedet/semantic-utest.el

index c0099386f1c41f1dfc7678f47149b76a78a1bb30..67de4a5b02de7720e4c7a8d733dae7b1990f6190 100644 (file)
@@ -577,10 +577,8 @@ INSERTME is the text to be inserted after the deletion."
 
 
 (ert-deftest semantic-utest-Javascript()
-  (if (fboundp 'javascript-mode)
-      (semantic-utest-generic (semantic-utest-fname "javascripttest.js") semantic-utest-Javascript-buffer-contents  semantic-utest-Javascript-name-contents   '("fun2") "//1" "//deleted line")
-    (message "Skipping JavaScript test: NO major mode."))
-  )
+  (skip-unless (fboundp 'javascript-mode))
+  (semantic-utest-generic (semantic-utest-fname "javascripttest.js") semantic-utest-Javascript-buffer-contents  semantic-utest-Javascript-name-contents   '("fun2") "//1" "//deleted line"))
 
 (ert-deftest semantic-utest-Java()
   ;; If JDE is installed, it might mess things up depending on the version