This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch]: Improve spu-info testcase
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: deuling at de dot ibm dot com (Markus Deuling)
- Cc: gdb-patches at sourceware dot org (GDB Patches)
- Date: Tue, 24 Jun 2008 21:15:22 +0200 (CEST)
- Subject: Re: [patch]: Improve spu-info testcase
Markus Deuling wrote:
> if multiple users on the same machine run the testsuite for spu-gdb, gdb.arch/spu-info will fail because of
> access priviliges to the temporary file. This file is created in /var/tmp currently. With this patch I changed
> the naming of the file (using speid to seperate different runs) and the location (user dir).
speid isn't really guaranteed to be different (it's just a pointer to an allocated
structure of libspe2) ...
Can we change the test to either use a pre-existing file (/dev/zero ?), or else
move allocating/deleting the file to the DejaGnu script instead and pass the
file name to the test case? That way we can probably more easily adapt to
local vs. cross debugging, and make sure the file is deleted in every case
(even if debugging crashes).
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com