diff options
author | Philipp Stephani <phst@google.com> | 2020-12-31 13:17:11 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2020-12-31 13:17:11 +0100 |
commit | 57d97bb170e86c77dede5456ab8fd178c3a5bf61 (patch) | |
tree | 5299c4eaa755a242c466993f32821d64ec2f0513 /test/src | |
parent | efe591143f3df326c11eb65f5aeea419405d4b90 (diff) | |
download | emacs-57d97bb170e86c77dede5456ab8fd178c3a5bf61.tar.gz emacs-57d97bb170e86c77dede5456ab8fd178c3a5bf61.tar.bz2 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')
-rw-r--r-- | test/src/process-tests.el | 4 |
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." (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)))) |