[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master aeb11da: Use skip-unless instead of if+message in test
From: |
Stefan Kangas |
Subject: |
master aeb11da: Use skip-unless instead of if+message in test |
Date: |
Wed, 13 Jan 2021 09:25:04 -0500 (EST) |
branch: master
commit aeb11da203d011d4331e1e09ec7c2e98584afcb8
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
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.
---
test/lisp/cedet/semantic-utest.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/lisp/cedet/semantic-utest.el
b/test/lisp/cedet/semantic-utest.el
index c009938..67de4a5 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."
(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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master aeb11da: Use skip-unless instead of if+message in test,
Stefan Kangas <=