From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 4 Jul 2019 18:50:53 +0300 From: Vladimir Davydov Subject: Re: [PATCH 1/6] Add ERROR_INJECT_YIELD and ERROR_INJECT_SLEEP helpers Message-ID: <20190704155053.lnpy6eodkzmgylgk@esperanza> References: <20190703191257.GD17318@atlas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190703191257.GD17318@atlas> To: Konstantin Osipov Cc: tarantool-patches@freelists.org List-ID: On Wed, Jul 03, 2019 at 10:12:57PM +0300, Konstantin Osipov wrote: > * Vladimir Davydov [19/07/01 10:04]: > > ERROR_INJECT_YIELD yields the current fiber execution by calling > > fiber_sleep(0) while the given error injection is set. > > I would sleep for some minimal non-zero time, e.g. a millisecond, > to avoid consuming CPU in parallel tests. Done and pushed to master.