From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26914 invoked by alias); 14 Dec 2010 06:58:04 -0000 Received: (qmail 26906 invoked by uid 22791); 14 Dec 2010 06:58:03 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Dec 2010 06:57:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id AF36B2BAB87; Tue, 14 Dec 2010 01:57:57 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4cw3gHI8sMSp; Tue, 14 Dec 2010 01:57:57 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 405E22BAB7F; Tue, 14 Dec 2010 01:57:57 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 93280145B58; Tue, 14 Dec 2010 07:57:44 +0100 (CET) Date: Tue, 14 Dec 2010 06:58:00 -0000 From: Joel Brobecker To: Phil Muldoon Cc: gdb-patches@sourceware.org Subject: Re: [patch] Fix fileio.exp failuew when run as root user. Message-ID: <20101214065744.GN2596@adacore.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-12/txt/msg00211.txt.bz2 > 2010-11-19 Jan Kratochvil > > * gdb.base/fileio.c (ROOTSUBDIR): New macro. > (main): CHDIR into ROOTSUBDIR. CHOWN ROOTSUBDIR and CHDIR into > ROOTSUBDIR if we are being run as root. > * gdb.base/fileio.exp: Change the startup and finish cleanup. > Change the test file reference to be into the `fileio.dir' directory. Did anyone comment on that patch? This looks OK to me. (why would anyone want to run the testsuite as root, though???) -- Joel