aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/subr-tests.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index efafdcf8325..430d719037f 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -307,5 +307,22 @@ cf. Bug#25477."
307 (should (eq (string-to-char (symbol-name (gensym))) ?g)) 307 (should (eq (string-to-char (symbol-name (gensym))) ?g))
308 (should (eq (string-to-char (symbol-name (gensym "X"))) ?X))) 308 (should (eq (string-to-char (symbol-name (gensym "X"))) ?X)))
309 309
310(ert-deftest shell-quote-argument-%-on-w32 ()
311 "Quoting of `%' in w32 shells isn't perfect.
312See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19350."
313 :expected-result :failed
314 (skip-unless (and (fboundp 'w32-shell-dos-semantics)
315 (w32-shell-dos-semantics)))
316 (let ((process-environment (append '("ca^=with-caret"
317 "ca=without-caret")
318 process-environment)))
319 ;; It actually results in
320 ;; without-caret with-caret
321 (should (equal (shell-command-to-string
322 (format "echo %s %s"
323 "%ca%"
324 (shell-quote-argument "%ca%")))
325 "without-caret %ca%"))))
326
310(provide 'subr-tests) 327(provide 'subr-tests)
311;;; subr-tests.el ends here 328;;; subr-tests.el ends here