Commit cbca0212 authored by Rusty Russell's avatar Rusty Russell

tap: fix exit status when we have exactly 256 errors.

parent cafea330
......@@ -418,8 +418,8 @@ todo_end(void)
UNLOCK;
}
int
exit_status(void)
static int
exit_status_(void)
{
int r;
......@@ -446,3 +446,12 @@ exit_status(void)
return r;
}
int
exit_status(void)
{
int r = exit_status_();
if (r > 255)
r = 255;
return r;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment