aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/subr-tests.el17
-rw-r--r--test/lisp/textmodes/css-mode-tests.el2
2 files changed, 18 insertions, 1 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index d0b3127f71b..52b61d9fb97 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -325,5 +325,22 @@ cf. Bug#25477."
325 (should (equal (butlast (new-list-fn)) 325 (should (equal (butlast (new-list-fn))
326 (assoc-delete-all "foo" (new-list-fn)))))) 326 (assoc-delete-all "foo" (new-list-fn))))))
327 327
328(ert-deftest shell-quote-argument-%-on-w32 ()
329 "Quoting of `%' in w32 shells isn't perfect.
330See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19350."
331 :expected-result :failed
332 (skip-unless (and (fboundp 'w32-shell-dos-semantics)
333 (w32-shell-dos-semantics)))
334 (let ((process-environment (append '("ca^=with-caret"
335 "ca=without-caret")
336 process-environment)))
337 ;; It actually results in
338 ;; without-caret with-caret
339 (should (equal (shell-command-to-string
340 (format "echo %s %s"
341 "%ca%"
342 (shell-quote-argument "%ca%")))
343 "without-caret %ca%"))))
344
328(provide 'subr-tests) 345(provide 'subr-tests)
329;;; subr-tests.el ends here 346;;; subr-tests.el ends here
diff --git a/test/lisp/textmodes/css-mode-tests.el b/test/lisp/textmodes/css-mode-tests.el
index a8ce9944169..b0283bfa455 100644
--- a/test/lisp/textmodes/css-mode-tests.el
+++ b/test/lisp/textmodes/css-mode-tests.el
@@ -58,7 +58,7 @@
58 58
59 ;; Check that the `color' property doesn't cause infinite recursion 59 ;; Check that the `color' property doesn't cause infinite recursion
60 ;; because it refers to the value class of the same name. 60 ;; because it refers to the value class of the same name.
61 (should (= (length (css--property-values "color")) 152))) 61 (should (= (length (css--property-values "color")) 154)))
62 62
63(ert-deftest css-test-property-value-cache () 63(ert-deftest css-test-property-value-cache ()
64 "Test that `css--property-value-cache' is in use." 64 "Test that `css--property-value-cache' is in use."