From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 8dcb19f 4/4: Add a unit test testing interaction between threads and processes. Date: Sat, 23 Jan 2021 22:27:29 +0200 Message-ID: <83h7n74cwe.fsf@gnu.org> References: <83k0s34eo1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32496"; mail-complaints-to="usenet@ciao.gmane.io" Cc: phst@google.com, emacs-devel@gnu.org To: p.stephani2@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 23 21:28:41 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3PWT-0008LB-58 for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jan 2021 21:28:41 +0100 Original-Received: from localhost ([::1]:51850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3PWS-0004Y9-82 for ged-emacs-devel@m.gmane-mx.org; Sat, 23 Jan 2021 15:28:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3PVM-0003q3-DN for emacs-devel@gnu.org; Sat, 23 Jan 2021 15:27:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48368) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3PVL-0001tS-A3; Sat, 23 Jan 2021 15:27:32 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4152 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l3PVF-0000Lm-Uc; Sat, 23 Jan 2021 15:27:28 -0500 In-Reply-To: <83k0s34eo1.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Jan 2021 21:49:18 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263319 Archived-At: > Date: Sat, 23 Jan 2021 21:49:18 +0200 > From: Eli Zaretskii > Cc: Philipp Stephani , emacs-devel@gnu.org > > Test process-tests/multiple-threads-waiting condition: > (ert-test-failed > ((should > (eql > (process-exit-status process) > 0)) > :form > (eql 1 0) > :value nil)) > FAILED 21/26 process-tests/multiple-threads-waiting (8.859375 sec) And if I run just this one test (using SELECTOR=...), it hangs in the first call to thread-join. Can you describe the idea of the test, and in particular why did you expect the threads to start running? IOW, which part of this test is supposed to force the main thread to yield so that one of the other threads starts running?