From aeb11da203d011d4331e1e09ec7c2e98584afcb8 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 13 Jan 2021 15:23:31 +0100 Subject: [PATCH] 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 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." (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 -- 2.39.5