This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix fileio.exp failuew when run as root user.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 Dec 2010 10:57:44 +0400
- Subject: Re: [patch] Fix fileio.exp failuew when run as root user.
- References: <m3bp5ll1c5.fsf@redhat.com>
> 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * 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