emacs-diffs
[Top][All Lists]
Advanced

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

master d4dd12d: Add more assertions to recently-added process test.


From: Philipp Stephani
Subject: master d4dd12d: Add more assertions to recently-added process test.
Date: Sun, 24 Jan 2021 07:57:20 -0500 (EST)

branch: master
commit d4dd12d3589559e61cdce978c40e1eb86a871266
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Add more assertions to recently-added process test.
    
    * test/src/process-tests.el (process-tests/multiple-threads-waiting):
    Also check that 'thread-join' and 'thread-last-error' return the
    expected errors.
---
 test/src/process-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index 676e1b1..a3fba8d 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -814,7 +814,8 @@ have written output."
         (cl-loop for process in processes
                  and thread in threads
                  do
-                 (thread-join thread)
+                 (should-not (thread-join thread))
+                 (should-not (thread-last-error))
                  (should (eq (process-status process) 'exit))
                  (should (eql (process-exit-status process) 0)))))))
 



reply via email to

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