; * test/src/editfns-tests.el (test-group-name): Ignore getent errors.

This commit is contained in:
Glenn Morris 2018-11-10 19:15:59 -08:00
parent c30f24d03d
commit a004d3bbba

View file

@ -362,8 +362,9 @@
(let (stat name)
(dolist (gid (list 0 1212345 (group-gid)))
(erase-buffer)
(setq stat (call-process "getent" nil '(t nil) nil "group"
(number-to-string gid)))
(setq stat (ignore-errors
(call-process "getent" nil '(t nil) nil "group"
(number-to-string gid))))
(setq name (group-name gid))
(goto-char (point-min))
(cond ((eq stat 0)