Gentoo Archives: gentoo-commits

From: "Matt Turner (mattst88)" <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/m4/files: m4-1.4.16-fix-test-readlink.patch
Date: Tue, 30 Aug 2011 01:43:43
Message-Id: 20110830014334.267A820051@flycatcher.gentoo.org
mattst88    11/08/30 01:43:34

  Added:                m4-1.4.16-fix-test-readlink.patch
  Log:
  Fix test-readlink. Thanks to Michael, bug 376639.
  
  (Portage version: 2.1.10.3/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-devel/m4/files/m4-1.4.16-fix-test-readlink.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-fix-test-readlink.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/m4/files/m4-1.4.16-fix-test-readlink.patch?rev=1.1&content-type=text/plain

Index: m4-1.4.16-fix-test-readlink.patch
===================================================================
--- tests/test-readlink.h
+++ tests/test-readlink.h
@@ -38,7 +38,7 @@
   ASSERT (errno == ENOENT);
   errno = 0;
   ASSERT (func ("", buf, sizeof buf) == -1);
-  ASSERT (errno == ENOENT);
+  ASSERT (errno == ENOENT || errno == EINVAL);
   errno = 0;
   ASSERT (func (".", buf, sizeof buf) == -1);
   ASSERT (errno == EINVAL);