Re: [Qemu-devel] [PATCH v4 14/14] tests: add BlockJobTxn unit test

2015-09-07 Thread Fam Zheng
On Mon, 08/03 20:45, Max Reitz wrote: > >+static void test_single_job(int expected) > >+{ > >+BlockJob *job; > >+BlockJobTxn *txn; > >+int result = -EINPROGRESS; > >+ > >+txn = block_job_txn_new(); > >+job = test_block_job_start(1, true, expected, &result); > > I think I'd like

Re: [Qemu-devel] [PATCH v4 14/14] tests: add BlockJobTxn unit test

2015-08-03 Thread Max Reitz
On 30.07.2015 08:39, 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 ---

[Qemu-devel] [PATCH v4 14/14] tests: add BlockJobTxn unit test

2015-07-29 Thread Fam Zheng
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 --- tests/Makefile| 3 + test