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) ...@@ -418,8 +418,8 @@ todo_end(void)
UNLOCK; UNLOCK;
} }
int static int
exit_status(void) exit_status_(void)
{ {
int r; int r;
...@@ -446,3 +446,12 @@ exit_status(void) ...@@ -446,3 +446,12 @@ exit_status(void)
return r; 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