Received: from eggs.gnu.org ([2001:4830:134:3::10]:59794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeD3g-0006lH-Iu for qemu-devel@nongnu.org; Mon, 21 Sep 2015 22:11:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeD3c-0003F2-JK for qemu-devel@nongnu.org; Mon, 21 Sep 2015 22:11:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeD3c-0003Eq-Ei for qemu-devel@nongnu.org; Mon, 21 Sep 2015 22:11:48 -0400 Date: Tue, 22 Sep 2015 10:11:45 +0800 From: Fam Zheng Message-ID: <20150922021145.GC32115@ad.nay.redhat.com> References: <1442297513-7001-1-git-send-email-famz@redhat.com> <1442297513-7001-15-git-send-email-famz@redhat.com> <55FBF955.80100@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55FBF955.80100@redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 14/14] tests: add BlockJobTxn unit test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , Jeff Cody , qemu-devel@nongnu.org, vsementsov@parallels.com, stefanha@redhat.com, John Snow On Fri, 09/18 13:45, Max Reitz wrote: > On 15.09.2015 08:11, Fam Zheng wrote: > > From: Stefan Hajnoczi > > > > The BlockJobTxn unit test verifies that both single jobs and pairs of > > jobs behave as a transaction group. Either all jobs complete > > successfully or the group is cancelled. > > > > Signed-off-by: Stefan Hajnoczi > > Signed-off-by: Fam Zheng > > Reviewed-by: Max Reitz > > --- > > tests/Makefile | 3 + > > tests/test-blockjob-txn.c | 244 ++++++++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 247 insertions(+) > > create mode 100644 tests/test-blockjob-txn.c > > > > diff --git a/tests/Makefile b/tests/Makefile > > index 34c6136..89ce2f3 100644 > > --- a/tests/Makefile > > +++ b/tests/Makefile > > @@ -45,6 +45,8 @@ check-unit-y += tests/test-thread-pool$(EXESUF) > > gcov-files-test-thread-pool-y = thread-pool.c > > gcov-files-test-hbitmap-y = util/hbitmap.c > > check-unit-y += tests/test-hbitmap$(EXESUF) > > +gcov-files-test-hbitmap-y = blockjob.c > > +check-unit-y += tests/test-blockjob-txn$(EXESUF) > > check-unit-y += tests/test-x86-cpuid$(EXESUF) > > # all code tested by test-x86-cpuid is inside topology.h > > gcov-files-test-x86-cpuid-y = > > @@ -294,6 +296,7 @@ tests/test-coroutine$(EXESUF): tests/test-coroutine.o $(block-obj-y) libqemuutil > > tests/test-aio$(EXESUF): tests/test-aio.o $(block-obj-y) libqemuutil.a libqemustub.a > > tests/test-rfifolock$(EXESUF): tests/test-rfifolock.o libqemuutil.a libqemustub.a > > tests/test-throttle$(EXESUF): tests/test-throttle.o $(block-obj-y) libqemuutil.a libqemustub.a > > +tests/test-blockjob-txn$(EXESUF): tests/test-blockjob-txn.o $(block-obj-y) libqemuutil.a libqemustub.a > > tests/test-thread-pool$(EXESUF): tests/test-thread-pool.o $(block-obj-y) libqemuutil.a libqemustub.a > > tests/test-iov$(EXESUF): tests/test-iov.o libqemuutil.a > > tests/test-hbitmap$(EXESUF): tests/test-hbitmap.o libqemuutil.a libqemustub.a > > This needs an update due to b124533e. The context is obvious, and I > guess for the new line itself it's > s/\$(block-obj-y).*$/$(test-block-obj-y)/. > > If that is indeed so, feel free to keep my R-b. Yes, thanks for pointint out. Also changed s/libqemuutil.a libqemustub.a/$(test-util-obj-y)/ with your R-b. Fam