From: Lars Ingebrigtsen <larsi@gnus.org>
To: dick.r.chiang@gmail.com
Cc: 43202@debbugs.gnu.org
Subject: bug#43202: patch
Date: Fri, 04 Sep 2020 15:29:56 +0200 [thread overview]
Message-ID: <87pn71acvf.fsf@gnus.org> (raw)
In-Reply-To: <87tuwdr90r.fsf@dick> (dick r. chiang's message of "Fri, 04 Sep 2020 09:01:08 -0400")
dick.r.chiang@gmail.com writes:
Looks good. Some comments:
> * lisp/simple.el (list-processes--refresh): network, serial, *or pipe*.
> * test/src/process-tests.el (process-test-stopped-pipe): add a test.
These aren't really descriptive (and each sentence should start with a
capital letter).
> +(ert-deftest process-test-stopped-pipe ()
> + (skip-unless (executable-find "cat"))
> + (with-temp-buffer
> + (let ((proc (make-pipe-process :name "pipe" :buffer (current-buffer)
> + :command '("cat") :stop t)))
> + (unwind-protect
> + (should (list-processes--refresh))
> + (delete-process proc)))))
I don't think this test is correct -- you're really checking that
list-processes--refresh doesn't bug out; not that it returns non-nil (it
doesn't have a well-defined return value).
So if this is to be checked for (I'm not sure it adds much value as a
test), then it should check whether it errors out or not (and the value
should be disregarded).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-09-04 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-04 13:01 bug#43202: patch dick.r.chiang
2020-09-04 13:29 ` Lars Ingebrigtsen [this message]
2020-09-06 21:20 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn71acvf.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=43202@debbugs.gnu.org \
--cc=dick.r.chiang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).