emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/bash-completion aec357fbf1 249/313: Test default completio


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion aec357fbf1 249/313: Test default completion with both value of use-separate-process.
Date: Sat, 3 Dec 2022 10:59:35 -0500 (EST)

branch: elpa/bash-completion
commit aec357fbf1c84b764b9982d67ea06104d88869e3
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Test default completion with both value of use-separate-process.
    
    The handling is slightly different with use-separate-process=nil than
    with use-separate-process=t, so it's worth testing both.
---
 test/bash-completion-integration-test.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/bash-completion-integration-test.el 
b/test/bash-completion-integration-test.el
index 7a8326a655..ef2bdd21c2 100644
--- a/test/bash-completion-integration-test.el
+++ b/test/bash-completion-integration-test.el
@@ -262,6 +262,12 @@ for testing completion."
    (should (equal "cp 'my dir1/a' 'my dir1/" (bash-completion_test-complete 
"cp 'my dir1/a' 'my dir"))))
 
 (ert-deftest bash-completion-integration-bash-4-default-completion ()
+  (bash-completion_test-bash-4-default-completion t))
+
+(ert-deftest 
bash-completion-integration-bash-4-default-completion-single-process ()
+  (bash-completion_test-bash-4-default-completion nil))
+
+(defun bash-completion_test-bash-4-default-completion (use-separate-process)
   (bash-completion_test-with-shell-harness
    (concat ; .bashrc
     "function _default {\n"
@@ -274,7 +280,7 @@ for testing completion."
     "  if [[ ${COMP_WORDS[COMP_CWORD]} == du ]]; then COMPREPLY=(dummy); fi\n"
     "}\n"
     "complete -D -F _default\n")
-   t ; use-separate-process
+   use-separate-process
    (when (>= (bash-completion_test-bash-major-version) 4)
      (should (equal "dosomething dummy "
                     (bash-completion_test-complete "dosomething du")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]