From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3FX-0001Wx-6Q for qemu-devel@nongnu.org; Tue, 31 Mar 2015 16:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yd3FS-0003pE-9p for qemu-devel@nongnu.org; Tue, 31 Mar 2015 16:59:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yd3FS-0003p4-17 for qemu-devel@nongnu.org; Tue, 31 Mar 2015 16:58:58 -0400 Message-ID: <551B0A89.8060507@redhat.com> Date: Tue, 31 Mar 2015 16:58:49 -0400 From: John Snow MIME-Version: 1.0 References: <1427129798-21590-1-git-send-email-jsnow@redhat.com> <1427129798-21590-5-git-send-email-jsnow@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 4/4] ahci-test: improve rw buffer patterns List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Maste Cc: Peter Maydell , qemu-devel On 03/31/2015 04:55 PM, Ed Maste wrote: > On 23 March 2015 at 12:56, John Snow wrote: >> My pattern was cyclical every 256 bytes, so it missed a fairly obvious >> failure case. Add some rand() pepper into the test pattern, and for la= rge >> patterns that exceed 256 sectors, start writing an ID per-sector so th= at >> we never generate identical sector patterns. >> >> Signed-off-by: John Snow >> Reviewed-by: Stefan Hajnoczi >> Tested-by: Andreas F=C3=A4rber >> Message-id: 1426811056-2202-5-git-send-email-jsnow@redhat.com >> --- >> tests/ahci-test.c | 36 ++++++++++++++++++++++++++++-------- >> 1 file changed, 28 insertions(+), 8 deletions(-) > > As of the introduction of this test the test suite fails on FreeBSD, > with 6 errors of the form: > > ERROR:tests/ahci-test.c:790:ahci_test_io_rw_simple: assertion failed > (memcmp(tx, rx, bufsize) =3D=3D 0): (0xffffffffffffffff =3D=3D 0x000000= 00) > GTester: last random seed: R02S76f68c4cfb2d54af66de227ed44fd54a > > I haven't yet done any investigation beyond bisecting. > which test case does it fail under? io_rw_simple is shared by a number=20 of different tests. I suspect deeply that this test pattern has just unearthed an existing=20 problem.