e63663
From f61085aaa37f169365c56e44f5129d0491913b6a Mon Sep 17 00:00:00 2001
e63663
From: Paul Eggert <eggert@cs.ucla.edu>
e63663
Date: Thu, 27 Aug 2020 17:52:58 -0700
e63663
Subject: [PATCH] perror, strerror_r: remove unportable tests
e63663
e63663
Problem reported by Florian Weimer in:
e63663
https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
e63663
* tests/test-perror2.c (main):
e63663
* tests/test-strerror_r.c (main): Omit unportable tests.
e63663
e63663
Upstream-commit: 175e0bc72808d564074c4adcc72aeadb74adfcc6
e63663
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
e63663
---
e63663
 gnulib-tests/test-perror2.c    | 3 ---
e63663
 gnulib-tests/test-strerror_r.c | 3 ---
e63663
 2 files changed, 6 deletions(-)
e63663
e63663
diff --git a/gnulib-tests/test-perror2.c b/gnulib-tests/test-perror2.c
e63663
index 1d14eda..c6214dd 100644
e63663
--- a/gnulib-tests/test-perror2.c
e63663
+++ b/gnulib-tests/test-perror2.c
e63663
@@ -79,9 +79,6 @@ main (void)
e63663
     errno = -5;
e63663
     perror ("");
e63663
     ASSERT (!ferror (stderr));
e63663
-    ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
e63663
-    ASSERT (msg2 == msg4 || STREQ (msg2, str2));
e63663
-    ASSERT (msg3 == msg4 || STREQ (msg3, str3));
e63663
     ASSERT (STREQ (msg4, str4));
e63663
 
e63663
     free (str1);
e63663
diff --git a/gnulib-tests/test-strerror_r.c b/gnulib-tests/test-strerror_r.c
e63663
index b11d6fd..c1dbcf8 100644
e63663
--- a/gnulib-tests/test-strerror_r.c
e63663
+++ b/gnulib-tests/test-strerror_r.c
e63663
@@ -165,9 +165,6 @@ main (void)
e63663
 
e63663
     strerror_r (EACCES, buf, sizeof buf);
e63663
     strerror_r (-5, buf, sizeof buf);
e63663
-    ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
e63663
-    ASSERT (msg2 == msg4 || STREQ (msg2, str2));
e63663
-    ASSERT (msg3 == msg4 || STREQ (msg3, str3));
e63663
     ASSERT (STREQ (msg4, str4));
e63663
 
e63663
     free (str1);
e63663
-- 
e63663
2.25.4
e63663