X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftime%2Ftest%2Frun-check.c;h=11bcc57642b911ca90f00c177809293dc12f3256;hp=3c2e282fd4b4b40e47962066b6c45d6ef018ffc7;hb=0ce52c7ca42c2b3a6458cac348f5a8b96d7f1b62;hpb=6e86fffc5e5780c209f52986be4f150b16b96d29 diff --git a/ccan/time/test/run-check.c b/ccan/time/test/run-check.c index 3c2e282f..11bcc576 100644 --- a/ccan/time/test/run-check.c +++ b/ccan/time/test/run-check.c @@ -156,7 +156,8 @@ int main(void) ok1(t3.ts.tv_sec == 2); ok1(t3.ts.tv_nsec == 147483648); - pipe(fds); + if (pipe(fds) != 0) + exit(1); fflush(stdout); switch (fork()) {