GNU bug report logs - #37312
test failure in sed-4.7

Previous Next

Package: sed;

Reported by: "Oppe, Thomas C ERDC-RDE-ITL-MS Contractor" <Thomas.C.Oppe <at> erdc.dren.mil>

Date: Thu, 5 Sep 2019 14:40:03 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 37312 <at> debbugs.gnu.org (full text, mbox):

From: "Oppe, Thomas C ERDC-RDE-ITL-MS Contractor" <Thomas.C.Oppe <at> erdc.dren.mil>
To: 'Bruno Haible' <bruno <at> clisp.org>, "bug-gnulib <at> gnu.org" <bug-gnulib <at> gnu.org>
Cc: Assaf Gordon <assafgordon <at> gmail.com>,
 "37312 <at> debbugs.gnu.org" <37312 <at> debbugs.gnu.org>
Subject: RE: test-symlink fails on "lustre" file system
Date: Sat, 7 Sep 2019 14:57:19 +0000
[Message part 1 (text/plain, inline)]
Bruno,

Thank you for the patch.  I have made the fix in my versions of:

sed-4.7                      sed-4.7/gnulib-tests/test-symlink.h
m4-1.4.18                 m4-1.4.18/tests/test-symlink.h
gettext-0.20.1
gettext-0.20.1/gettext-tools/gnulib-tests/test-symlink.h

since the same test failure occurs in these three packages.  I will rerun my
build of GCC 9.2.0 with its many prerequisites packages (for all of which I
do "make check") and see what the results are.

It is great to clear up these test failures for Linux systems using the
Lustre file system.

Tom Oppe

-----Original Message-----
From: Bruno Haible [mailto:bruno <at> clisp.org] 
Sent: Friday, September 6, 2019 6:18 PM
To: bug-gnulib <at> gnu.org; Oppe, Thomas C ERDC-RDE-ITL-MS Contractor
<Thomas.C.Oppe <at> erdc.dren.mil>
Cc: 37312 <at> debbugs.gnu.org; Assaf Gordon <assafgordon <at> gmail.com>
Subject: Re: test-symlink fails on "lustre" file system

Thomas Oppe wrote:
> INSERTED errno=2
> test-symlink.h:71: assertion 'errno == EEXIST || errno == EINVAL' 
> failed FAIL test-symlink (exit status: 134)

Thanks. I'm pushing this patch; it will fix the failure in this place.


2019-09-06  Bruno Haible  <bruno <at> clisp.org>

	symlink tests: Avoid test failure on Linux with Lustre file system.
	Reported by Thomas C Oppe <Thomas.C.Oppe <at> erdc.dren.mil>
	at
<Blockedhttps://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312Blocked>.
	* tests/test-symlink.h (test_symlink): Accept errno value ENOENT.

diff --git a/tests/test-symlink.h b/tests/test-symlink.h index
c556347..8fd55c0 100644
--- a/tests/test-symlink.h
+++ b/tests/test-symlink.h
@@ -67,7 +67,8 @@ test_symlink (int (*func) (char const *, char const *),
bool print)
   ASSERT (errno == EEXIST);
   errno = 0;
   ASSERT (func ("nowhere", BASE "dir/") == -1);
-  ASSERT (errno == EEXIST || errno == EINVAL);
+  ASSERT (errno == EEXIST || errno == EINVAL
+          || errno == ENOENT /* Lustre FS on Linux */);
   ASSERT (close (creat (BASE "file", 0600)) == 0);
   errno = 0;
   ASSERT (func ("nowhere", BASE "file") == -1);


[smime.p7s (application/pkcs7-signature, attachment)]

This bug report was last modified 5 years and 309 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.