This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

[PATCH] Fix ftw3 test (was Re: s390 patches for the trunk.)


On Wed, Feb 06, 2002 at 03:45:51PM +0100, Martin Schwidefsky wrote:
> 
> Hi,
> I have another update for the s390/s390x backends. Most of them are self
> explaining. The versions problem is solved with the Versions file for
> 64 bit and a patch for gcc 3.1 that exports __register_frame and co as
> GLIBC_2.2 symbols for s390x. The cvs head of today with the attached
> patch compiles with gcc 2.95.3 and gcc 3.1 but "make tests" reports one
> problem with io/bug-ftw3.

You were running make check as root, weren't you?
I noticed it already too some weeks ago. That test relies on not beeing run
as root, so it might as well just bail out in that case.

2002-02-06  Jakub Jelinek  <jakub@redhat.com>

	* io/bug-ftw3.c (main): Don't try the test if root.

--- libc/io/bug-ftw3.c	2002/01/31 21:31:49
+++ libc/io/bug-ftw3.c	2002/01/08 11:46:46
@@ -25,6 +25,12 @@ main (void)
   int r;
   int e;
 
+  if (getuid () == 0)
+    {
+      puts ("this test needs to be run by ordinary user");
+      exit (0);
+    }
+
   dname = mkdtemp (tmp);
   if (dname == NULL)
     {


	Jakub


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