]> git.eshelyaron.com Git - emacs.git/commitdiff
Add more assertions to recently-added process test.
authorPhilipp Stephani <phst@google.com>
Sun, 24 Jan 2021 12:56:18 +0000 (13:56 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 24 Jan 2021 12:56:18 +0000 (13:56 +0100)
* 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

index 676e1b1ac327d2a6c3f3d6893f81fd93f8cfd8cb..a3fba8d328b622b0326357f8a76e9c1d54e5c222 100644 (file)
@@ -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)))))))