Bug 19267 - LSB test cases about locale are Failed on GLibc(2.22)
Summary: LSB test cases about locale are Failed on GLibc(2.22)
Status: RESOLVED DUPLICATE of bug 18589
Alias: None
Product: glibc
Classification: Unclassified
Component: locale (show other bugs)
Version: 2.22
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-19 07:59 UTC by li xin
Modified: 2015-11-24 07:24 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description li xin 2015-11-19 07:59:11 UTC
Those cases are are Failed on GLibc(2.22),and they are PASS on GLibc(2.21) or less.

/tset/ANSI.os/locale/setlocale/T.setlocale 1 2 4 5 15
/tset/ANSI.os/string/strcoll_X/T.strcoll_X 1
/tset/POSIX.os/procenv/sysconf_X/T.sysconf_X 12 14
/tset/LI18NUX2K.L1/base/wcscoll/T.wcscoll 1
/tset/LI18NUX2K.L1/utils/localedef/T.localedef 7
/tset/LI18NUX2K.L1/utils/sort/T.sort 1 3 17 19 33 35
/tset/LI18NUX2K.L1/utils/comm/T.comm 1 2
/tset/LI18NUX2K.L1/utils/ls-fh/T.ls-fh 2

The test code is as following:

----------------------------------
43 private char *test_locale = "LTP_1.UTF-8";
......
50 private wchar_t wcs2[] = L"Ch";
51 private wchar_t les2[] = L"Cz";
......
86   if (setlocale (LC_ALL, test_locale) == NULL)
87     {
88       xx_rpt (FAILURE);
89       in_rpt ("Cannot use test locale.");
90       DBUG_VOID_RETURN;
91     }
......
104   /* for collating elements `Ch' */
105   rval = wcscoll (les2, wcs2);
106   if (rval < 0)
107     PATH_TRACE;
108   else
109     {
110       xx_rpt (FAILURE);
111       in_rpt ("When the strings have a collating symbol, "
112               "the return value is not correct.");
113     }
......
----------------------------------

The expect return value of rval is <0,but the actual return value is >0.
Comment 1 Andreas Schwab 2015-11-19 08:51:03 UTC
Please test with commit 6c84109.
Comment 2 li xin 2015-11-24 02:28:49 UTC
(In reply to Andreas Schwab from comment #1)
> Please test with commit 6c84109.

After I update Glibc to commit 6c84109,those case are passed.

Thank you very much.
Comment 3 Florian Weimer 2015-11-24 07:24:50 UTC

*** This bug has been marked as a duplicate of bug 18589 ***