aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/process-tests.el
diff options
context:
space:
mode:
authorPhilipp Stephani2020-12-31 13:17:11 +0100
committerPhilipp Stephani2020-12-31 13:17:11 +0100
commit57d97bb170e86c77dede5456ab8fd178c3a5bf61 (patch)
tree5299c4eaa755a242c466993f32821d64ec2f0513 /test/src/process-tests.el
parentefe591143f3df326c11eb65f5aeea419405d4b90 (diff)
downloademacs-57d97bb170e86c77dede5456ab8fd178c3a5bf61.tar.gz
emacs-57d97bb170e86c77dede5456ab8fd178c3a5bf61.zip
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.
Diffstat (limited to 'test/src/process-tests.el')
-rw-r--r--test/src/process-tests.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index eee8636067c..7a83df9eefa 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."
701 (when (eq process-tests--EMFILE-message :unknown) 701 (when (eq process-tests--EMFILE-message :unknown)
702 (setq process-tests--EMFILE-message 702 (setq process-tests--EMFILE-message
703 (with-temp-buffer 703 (with-temp-buffer
704 (when (eql (call-process "errno" nil t nil "EMFILE") 0) 704 (when (eql (ignore-error 'file-error
705 (call-process "errno" nil t nil "EMFILE"))
706 0)
705 (goto-char (point-min)) 707 (goto-char (point-min))
706 (when (looking-at (rx "EMFILE" (+ blank) (+ digit) 708 (when (looking-at (rx "EMFILE" (+ blank) (+ digit)
707 (+ blank) (group (+ nonl)))) 709 (+ blank) (group (+ nonl))))