emacs-diffs
[Top][All Lists]
Advanced

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

master 57d97bb: Unbreak process tests if 'errno' is not installed.


From: Philipp Stephani
Subject: master 57d97bb: Unbreak process tests if 'errno' is not installed.
Date: Thu, 31 Dec 2020 07:18:01 -0500 (EST)

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

    Unbreak process tests if 'errno' is not installed.
    
    * test/src/process-tests.el (process-tests--EMFILE-message): Don't
    signal an error if the 'errno' binary is unavailable.
---
 test/src/process-tests.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index eee8636..7a83df9 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -701,7 +701,9 @@ Return nil if that can't be determined."
   (when (eq process-tests--EMFILE-message :unknown)
     (setq process-tests--EMFILE-message
           (with-temp-buffer
-            (when (eql (call-process "errno" nil t nil "EMFILE") 0)
+            (when (eql (ignore-error 'file-error
+                         (call-process "errno" nil t nil "EMFILE"))
+                       0)
               (goto-char (point-min))
               (when (looking-at (rx "EMFILE" (+ blank) (+ digit)
                                     (+ blank) (group (+ nonl))))



reply via email to

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