mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 10:30:28 +01:00
test: clip the exit code to 255
If more than 255 tests fail, we're returning an exit code outside of the POSIX standard. This only takes effect for -j1, where we fork off we only ever have a failed value of 1 anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
87abdf1f63
commit
5a05e41940
1 changed files with 1 additions and 1 deletions
|
|
@ -4100,6 +4100,6 @@ main(int argc, char **argv)
|
|||
#endif
|
||||
}
|
||||
|
||||
return failed_tests;
|
||||
return min(failed_tests, 255);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue