]> git.pld-linux.org Git - packages/findutils.git/blob - findutils-4.6.0-mbrtowc-tests.patch
- enhanced info and pl.po-update patches
[packages/findutils.git] / findutils-4.6.0-mbrtowc-tests.patch
1 From 06a46ba755195810f2aeda01b12d1ccfe7c2dcfd Mon Sep 17 00:00:00 2001
2 From: Daiki Ueno <ueno@gnu.org>
3 Date: Mon, 28 Dec 2015 06:27:42 +0900
4 Subject: [PATCH] maint: fix operator precedence in mbrtowc test
5
6 This is a fix for test breakage introduced by commit 45228d96; the
7 equality expression must be parenthesized when negated with '!',
8 otherwise we always get:
9
10   test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
11
12 * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
13
14 Upstream-commit: 1f63650823cebf52044df840c81062ccb52163a2
15 Signed-off-by: Kamil Dudka <kdudka@redhat.com>
16 ---
17  gl/m4/mbrtowc.m4 | 2 +-
18  1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/gl/m4/mbrtowc.m4 b/gl/m4/mbrtowc.m4
21 index deb9f06..be2e9d6 100644
22 --- a/gl/m4/mbrtowc.m4
23 +++ b/gl/m4/mbrtowc.m4
24 @@ -569,7 +569,7 @@ changequote([,])dnl
25             int
26             main (void)
27             {
28 -             return ! mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
29 +             return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
30             }]])],
31          [gl_cv_func_mbrtowc_empty_input=yes],
32          [gl_cv_func_mbrtowc_empty_input=no],
33 -- 
34 2.5.0
35
This page took 0.043317 seconds and 3 git commands to generate.