]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
conformtest: Correct some limits.h expectations for XPG3, XPG4.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 23 May 2016 15:25:34 +0000 (15:25 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 23 May 2016 15:25:34 +0000 (15:25 +0000)
The conform/ test of limits.h namespace for XPG3 was failing because
of NL_* and NZERO defines.  Those symbols are EX-shaded, not
UX-shaded, so it's correct for them to be defined for XPG3; this patch
corrects the expectations accordingly.  (Actually it looks like they
should not be listed as optional for these standards, but that's
another matter.)

Tested for x86_64 and x86.

* conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
[XPG3 || XPG4].
(NL_ARGMAX): Also expect for [XPG3].
(NL_LANGMAX): Likewise.
(NL_MSGMAX): Likewise.
(NL_NMAX): Likewise.
(NL_SETMAX): Likewise.
(NL_TEXTMAX): Likewise.
(NZERO): Likewise.
(TMP_MAX): Likewise.
* conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
variable.

ChangeLog
conform/Makefile
conform/data/limits.h-data

index 45440d71ab9b6e474e124fac288702806837a6cc..e2b3d4db0eae867ba8732bd5275beaf3b6c9fb25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
 
+       * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
+       [XPG3 || XPG4].
+       (NL_ARGMAX): Also expect for [XPG3].
+       (NL_LANGMAX): Likewise.
+       (NL_MSGMAX): Likewise.
+       (NL_NMAX): Likewise.
+       (NL_SETMAX): Likewise.
+       (NL_TEXTMAX): Likewise.
+       (NZERO): Likewise.
+       (TMP_MAX): Likewise.
+       * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
+       variable.
+
        * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
        (PF_MAX): Update value.
        (AF_KCM): New macro.
index b67e8e94b783d5728966656e3c7fe7de7aa448d1..32a0937b0682de91b2fbd03731c092f53c1241c1 100644 (file)
@@ -163,7 +163,6 @@ test-xfail-XOPEN2K/ndbm.h/conform = yes
 test-xfail-XOPEN2K8/ndbm.h/conform = yes
 
 # Unsorted expected failures.
-test-xfail-XPG3/limits.h/conform = yes
 test-xfail-XPG3/signal.h/conform = yes
 test-xfail-XPG3/sys/wait.h/conform = yes
 test-xfail-XPG4/arpa/inet.h/conform = yes
index 726db1e632bc25c86cd01d51929dc6718787f921..5ea68ff0b6f132ea795423482b4c29ea894adc1a 100644 (file)
@@ -170,10 +170,10 @@ constant LONG_BIT >= 32
 #endif
 constant SSIZE_MAX
 
-#if !defined POSIX && !defined XPG3 && !defined XPG4
+#if !defined POSIX
 optional-constant CHARCLASS_NAME_MAX >= 14
 #endif
-#if !defined POSIX && !defined XPG3
+#if !defined POSIX
 optional-constant NL_ARGMAX >= 9
 # if !defined POSIX2008
 optional-constant NL_LANGMAX >= 14
@@ -188,7 +188,7 @@ optional-constant NL_TEXTMAX
 optional-constant NZERO >= 20
 # endif
 #endif
-#if defined XPG4 || defined UNIX98
+#if defined XPG3 || defined XPG4 || defined UNIX98
 optional-constant TMP_MAX >= 10000
 #endif