From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.help Subject: Writing ERT tests for asynchronous events Date: Thu, 02 Jan 2014 10:43:51 +0000 Message-ID: <87ppoaoe8o.fsf@linaro.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1388659427 15053 80.91.229.3 (2 Jan 2014 10:43:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2014 10:43:47 +0000 (UTC) To: "help-gnu-emacs\@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 02 11:43:55 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vyfkn-0001oH-Jf for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2014 11:43:53 +0100 Original-Received: from localhost ([::1]:44287 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vyfkn-0007N8-8B for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jan 2014 05:43:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyfkZ-0007My-VY for help-gnu-emacs@gnu.org; Thu, 02 Jan 2014 05:43:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VyfkV-0004GG-Aa for help-gnu-emacs@gnu.org; Thu, 02 Jan 2014 05:43:39 -0500 Original-Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:44479 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyfkV-0004Eh-46 for help-gnu-emacs@gnu.org; Thu, 02 Jan 2014 05:43:35 -0500 Original-Received: from localhost ([127.0.0.1] helo=zen.linaro.local) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1Vyfn6-0004Bn-8h for help-gnu-emacs@gnu.org; Thu, 02 Jan 2014 11:46:16 +0100 User-agent: mu4e 0.9.9.6pre2; emacs 24.3.50.1 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: kernel-hacker@bennee.com X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 88.198.71.155 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95229 Archived-At: Hi, Is there any support in ERT for things that have asynchronous behaviour? For example I want my test to kick off something using a url fetch (against a server running in the same emacs) and then once the transaction has completed test things have worked as expected using the ert operators. If I can't do this is might be simpler to hook in bellow the network processing bits but in that case I need create a mock process buffer to represent the network connection process. What's the best way to do that? Cheers, -- Alex Bennée http://www.bennee.com/~alex