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 #28 received at 37312 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-gnulib <at> gnu.org, "Oppe,
 Thomas C ERDC-RDE-ITL-MS Contractor" <Thomas.C.Oppe <at> erdc.dren.mil>
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, 07 Sep 2019 00:18:26 +0200
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 <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
	* 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);





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.