tests: fix false failure with large printf formats
commitc81dda1b3994508f759bfb7245b1381950fb58b6
authorPádraig Brady <P@draigBrady.com>
Sun, 13 Aug 2017 06:53:33 +0000 (12 23:53 -0700)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Aug 2017 04:31:28 +0000 (13 21:31 -0700)
tree19b15a8e89363f7bba1ac348e30fc6f3ffb75413
parent96101eef33b2a56bd169560cd806b4b3237d2430
tests: fix false failure with large printf formats

* tests/misc/printf-surprise.sh: With musl libc the
large printf format does succeed, outputting data.
To avoid SIGPIPE being generated we ignore that signal
and then handle the subsequent EPIPE error.
Addresses https://bugs.gnu.org/28054
tests/misc/printf-surprise.sh