Blame SOURCES/gettext-0.21-gnulib-perror-tests.patch

4c9a72
From 175e0bc72808d564074c4adcc72aeadb74adfcc6 Mon Sep 17 00:00:00 2001
4c9a72
From: Paul Eggert <eggert@cs.ucla.edu>
4c9a72
Date: Thu, 27 Aug 2020 17:52:58 -0700
4c9a72
Subject: [PATCH] perror, strerror_r: remove unportable tests
4c9a72
4c9a72
Problem reported by Florian Weimer in:
4c9a72
https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
4c9a72
* tests/test-perror2.c (main):
4c9a72
* tests/test-strerror_r.c (main): Omit unportable tests.
4c9a72
---
4c9a72
 ChangeLog               | 8 ++++++++
4c9a72
 tests/test-perror2.c    | 3 ---
4c9a72
 tests/test-strerror_r.c | 3 ---
4c9a72
 3 files changed, 8 insertions(+), 6 deletions(-)
4c9a72
4c9a72
diff --git a/gettext-tools/gnulib-tests/test-perror2.c b/gettext-tools/gnulib-tests/test-perror2.c
4c9a72
index 1d14eda7b..c6214dd25 100644
4c9a72
--- a/gettext-tools/gnulib-tests/test-perror2.c
4c9a72
+++ b/gettext-tools/gnulib-tests/test-perror2.c
4c9a72
@@ -79,9 +79,6 @@ main (void)
4c9a72
     errno = -5;
4c9a72
     perror ("");
4c9a72
     ASSERT (!ferror (stderr));
4c9a72
-    ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
4c9a72
-    ASSERT (msg2 == msg4 || STREQ (msg2, str2));
4c9a72
-    ASSERT (msg3 == msg4 || STREQ (msg3, str3));
4c9a72
     ASSERT (STREQ (msg4, str4));
4c9a72
 
4c9a72
     free (str1);
4c9a72
diff --git a/gettext-tools/gnulib-tests/test-strerror_r.c b/gettext-tools/gnulib-tests/test-strerror_r.c
4c9a72
index b11d6fd9f..c1dbcf837 100644
4c9a72
--- a/gettext-tools/gnulib-tests/test-strerror_r.c
4c9a72
+++ b/gettext-tools/gnulib-tests/test-strerror_r.c
4c9a72
@@ -165,9 +165,6 @@ main (void)
4c9a72
 
4c9a72
     strerror_r (EACCES, buf, sizeof buf);
4c9a72
     strerror_r (-5, buf, sizeof buf);
4c9a72
-    ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
4c9a72
-    ASSERT (msg2 == msg4 || STREQ (msg2, str2));
4c9a72
-    ASSERT (msg3 == msg4 || STREQ (msg3, str3));
4c9a72
     ASSERT (STREQ (msg4, str4));
4c9a72
 
4c9a72
     free (str1);
4c9a72