summaryrefslogtreecommitdiff
path: root/community/bird/bird-make-test-bsprintf.patch
blob: d42027c374cb2773244e6a7897cb292315905b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -urp a/lib/printf_test.c b/lib/printf_test.c
--- a/lib/printf_test.c	1970-01-01 00:00:00.000000000 +0000
+++ b/lib/printf_test.c	1970-01-01 00:00:00.000000000 +0000
@@ -33,10 +33,14 @@ t_simple(void)
   BSPRINTF(1, "\xff", buf, "%c", 0xff);
 
   errno = 5;
-  BSPRINTF(18, "Input/output error", buf, "%m");
+  // glibc returns "Input/output error" while musl-libc returns "I/O error"
+  //BSPRINTF(18, "Input/output error", buf, "%m");
+  BSPRINTF(9, "I/O error", buf, "%m");
   errno = 0;
 
-  BSPRINTF(18, "Input/output error", buf, "%M", 5);
+  // glibc returns "Input/output error" while musl-libc returns "I/O error"
+  //BSPRINTF(18, "Input/output error", buf, "%M", 5);
+  BSPRINTF(9, "I/O error", buf, "%M", 5);
 
   BSPRINTF(11, "TeSt%StRiNg", buf, "%s", "TeSt%StRiNg");