X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ferr%2Ftest%2Frun.c;h=c103f7cda6e0039092a5b19e14b2a6adb2008b11;hp=242e93f8061c246e344a26079f0b0fd2808bb813;hb=1de204600b76e0bfba1f0cebdd2a6a62a04e9e70;hpb=e589d16bb2fd92366c02217d5ba6ca6a77ac3515 diff --git a/ccan/err/test/run.c b/ccan/err/test/run.c index 242e93f8..c103f7cd 100644 --- a/ccan/err/test/run.c +++ b/ccan/err/test/run.c @@ -27,7 +27,8 @@ int main(int argc, char *argv[]) base = argv[0]; /* Test err() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; @@ -59,7 +60,8 @@ int main(int argc, char *argv[]) } /* Test errx() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; @@ -89,7 +91,8 @@ int main(int argc, char *argv[]) /* Test warn() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; @@ -121,7 +124,8 @@ int main(int argc, char *argv[]) } /* Test warnx() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1];