-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exit code test failure on OSX #2823
Comments
@jakepruitt exit code 134 is an exit due to SIGABRT (n = 6 ) http://tldp.org/LDP/abs/html/exitcodes.html
|
These failures are due to this change: 0b86896 where we're not catching This is somewhat intended behaviour, as we'd like OSRM to exit noisily for all but a few exceptions. Exiting with SIGABRT triggers a core dump, and from that, we can easily script GDB to get stack traces. Our production systems automate this. Previously, when we caught @jakepruitt The test cases should handle this particular error - the tests that are failing here are when invalid parameters are passed on the command line. I thought I fixed this with this change: 176c224#diff-2d3b7ab3f92e44dc1a5f49fdefc0336fR128 but it looks like I didn't handle all cases. The SIGABRT exit code is platform specific, so these tests sometimes pass, depending on where you're running them. I'm surprised this slipped by Travis. What we really should be doing here is catching Ideally we'd have much more comprehensive error handling, but that's a bigger job.... |
In #2795 I had to work around this by defining a more general test function "it exists with an error" instead of "it exists with code \d". I defined as an error condition as |
Seeing three failing tests on OSX 10.11.6:
Looks like the exit code of bad commands is
134
rather than1
. When running the command in a stand-alone way I get:cc/ @danpat @springmeyer
The text was updated successfully, but these errors were encountered: