From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtudh-0000l6-Fj for qemu-devel@nongnu.org; Fri, 20 Dec 2013 02:37:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtudY-0005e1-Sv for qemu-devel@nongnu.org; Fri, 20 Dec 2013 02:36:53 -0500 Sender: Paolo Bonzini Message-ID: <52B3F388.4090402@redhat.com> Date: Fri, 20 Dec 2013 08:36:40 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1387523131-15647-1-git-send-email-famz@redhat.com> In-Reply-To: <1387523131-15647-1-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] acpi unit-test: Create temporary disk file under /tmp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-trivial@nongnu.org, Michael Tokarev , qemu-devel@nongnu.org, Marcel Apfelbaum Il 20/12/2013 08:05, Fam Zheng ha scritto: > As other tests, the image file is created in /tmp other than current > dir. Thus there will not be an unignored file under tests for intree > build. > > Signed-off-by: Fam Zheng > --- > tests/acpi-test.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/acpi-test.c b/tests/acpi-test.c > index ca83b1d6..e4f31b7 100644 > --- a/tests/acpi-test.c > +++ b/tests/acpi-test.c > @@ -116,7 +116,7 @@ static uint8_t boot_sector[0x200] = { > [0x1FF] = 0xAA, > }; > > -static const char *disk = "tests/acpi-test-disk.raw"; > +static const char *disk = "/tmp/qtest-acpi-test-disk.raw"; > > static void free_test_data(test_data *data) > { > The real bug is probably that the file is not unlinked. Using /tmp is a good idea, but if you do that you probably need to take TMPDIR into account. Paolo