linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / gnutls / fix-gnulib-tests-arm.patch
blob5a222a9cb887f1dd3f09fcca0b4d0f1cb067c4a0
1 >From 175e0bc72808d564074c4adcc72aeadb74adfcc6 Mon Sep 17 00:00:00 2001
2 From: Paul Eggert <eggert@cs.ucla.edu>
3 Date: Thu, 27 Aug 2020 17:52:58 -0700
4 Subject: [PATCH] perror, strerror_r: remove unportable tests
6 Problem reported by Florian Weimer in:
7 https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
8 * tests/test-perror2.c (main):
9 * tests/test-strerror_r.c (main): Omit unportable tests.
10 ---
11 tests/test-perror2.c | 3 ---
12 tests/test-strerror_r.c | 3 ---
13 2 files changed, 6 deletions(-)
15 diff --git a/gl/tests/test-perror2.c b/gl/tests/test-perror2.c
16 index 1d14eda7b..c6214dd25 100644
17 --- a/gl/tests/test-perror2.c
18 +++ b/gl/tests/test-perror2.c
19 @@ -79,9 +79,6 @@ main (void)
20 errno = -5;
21 perror ("");
22 ASSERT (!ferror (stderr));
23 - ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
24 - ASSERT (msg2 == msg4 || STREQ (msg2, str2));
25 - ASSERT (msg3 == msg4 || STREQ (msg3, str3));
26 ASSERT (STREQ (msg4, str4));
28 free (str1);
29 diff --git a/gl/tests/test-strerror_r.c b/gl/tests/test-strerror_r.c
30 index b11d6fd9f..c1dbcf837 100644
31 --- a/gl/tests/test-strerror_r.c
32 +++ b/gl/tests/test-strerror_r.c
33 @@ -165,9 +165,6 @@ main (void)
35 strerror_r (EACCES, buf, sizeof buf);
36 strerror_r (-5, buf, sizeof buf);
37 - ASSERT (msg1 == msg2 || msg1 == msg4 || STREQ (msg1, str1));
38 - ASSERT (msg2 == msg4 || STREQ (msg2, str2));
39 - ASSERT (msg3 == msg4 || STREQ (msg3, str3));
40 ASSERT (STREQ (msg4, str4));
42 free (str1);
43 --
44 2.17.1