From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2328 invoked by alias); 24 Jun 2008 19:15:52 -0000 Received: (qmail 2317 invoked by uid 22791); 24 Jun 2008 19:15:52 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 24 Jun 2008 19:15:28 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id m5OJFNj3178164 for ; Tue, 24 Jun 2008 19:15:23 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5OJFMfV4145406 for ; Tue, 24 Jun 2008 21:15:22 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m5OJFMWP013253 for ; Tue, 24 Jun 2008 21:15:22 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m5OJFML0013250; Tue, 24 Jun 2008 21:15:22 +0200 Message-Id: <200806241915.m5OJFML0013250@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 24 Jun 2008 21:15:22 +0200 Subject: Re: [patch]: Improve spu-info testcase To: deuling@de.ibm.com (Markus Deuling) Date: Tue, 24 Jun 2008 19:30:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org (GDB Patches) In-Reply-To: <485B34CC.70401@de.ibm.com> from "Markus Deuling" at Jun 20, 2008 06:40:44 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00415.txt.bz2 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