This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]