aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-01-13 15:23:31 +0100
committerStefan Kangas2021-01-13 15:23:31 +0100
commitaeb11da203d011d4331e1e09ec7c2e98584afcb8 (patch)
treea9f340e828fa0632556eb64c4ca635edb924b649
parent118d6ef554e9e821925578d6ca6f3fd3d4cba780 (diff)
downloademacs-aeb11da203d011d4331e1e09ec7c2e98584afcb8.tar.gz
emacs-aeb11da203d011d4331e1e09ec7c2e98584afcb8.zip
Use skip-unless instead of if+message in test
* test/lisp/cedet/semantic-utest.el (semantic-utest-Javascript): Use skip-unless instead of if+message.
-rw-r--r--test/lisp/cedet/semantic-utest.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/lisp/cedet/semantic-utest.el b/test/lisp/cedet/semantic-utest.el
index c0099386f1c..67de4a5b02d 100644
--- a/test/lisp/cedet/semantic-utest.el
+++ b/test/lisp/cedet/semantic-utest.el
@@ -577,10 +577,8 @@ INSERTME is the text to be inserted after the deletion."
577 577
578 578
579(ert-deftest semantic-utest-Javascript() 579(ert-deftest semantic-utest-Javascript()
580 (if (fboundp 'javascript-mode) 580 (skip-unless (fboundp 'javascript-mode))
581 (semantic-utest-generic (semantic-utest-fname "javascripttest.js") semantic-utest-Javascript-buffer-contents semantic-utest-Javascript-name-contents '("fun2") "//1" "//deleted line") 581 (semantic-utest-generic (semantic-utest-fname "javascripttest.js") semantic-utest-Javascript-buffer-contents semantic-utest-Javascript-name-contents '("fun2") "//1" "//deleted line"))
582 (message "Skipping JavaScript test: NO major mode."))
583 )
584 582
585(ert-deftest semantic-utest-Java() 583(ert-deftest semantic-utest-Java()
586 ;; If JDE is installed, it might mess things up depending on the version 584 ;; If JDE is installed, it might mess things up depending on the version