]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tst-sprintf-errno: Update Hurd message length
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 17 Sep 2022 15:42:42 +0000 (17:42 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 17 Sep 2022 15:42:42 +0000 (17:42 +0200)
03ad444e8e08 ("mach: Fix incoherency between perror and strerror") fixesd
the output of error messages, but tst-sprintf-errno.c was still checking
the old (erroneous) format length. This updates the expected output length
according to the 03ad444e8e08 fix.

stdio-common/tst-sprintf-errno.c

index 91b1f142fb85d3ab02330a9f10b9d4ff197de8e6..13e7ed28f0390e15fbbab580733e79a043965e23 100644 (file)
@@ -49,7 +49,7 @@ do_test (void)
 
   errno = -1;
 #ifdef __GNU__
-  TEST_COMPARE (sprintf (buf, "%m"), 35);
+  TEST_COMPARE (sprintf (buf, "%m"), 39);
   TEST_COMPARE_STRING (buf, "Error in unknown error system: FFFFFFFF");
 #else
   TEST_COMPARE (sprintf (buf, "%m"), 16);