diff options
Diffstat (limited to 'testing/bird/bird-make-test-bsprintf.patch')
-rw-r--r-- | testing/bird/bird-make-test-bsprintf.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/bird/bird-make-test-bsprintf.patch b/testing/bird/bird-make-test-bsprintf.patch new file mode 100644 index 0000000000..d42027c374 --- /dev/null +++ b/testing/bird/bird-make-test-bsprintf.patch @@ -0,0 +1,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"); + |