fixes #958, activates 2 additional tests
This commit is contained in:
parent
c470ea9fa1
commit
8bd5f69e04
@ -33,17 +33,14 @@ Feature: Command line options
|
|||||||
And stdout should contain "--port"
|
And stdout should contain "--port"
|
||||||
And stdout should contain "--threads"
|
And stdout should contain "--threads"
|
||||||
And stdout should contain "--sharedmemory"
|
And stdout should contain "--sharedmemory"
|
||||||
|
|
||||||
@todo
|
|
||||||
Scenario: Non-existing option
|
Scenario: Non-existing option
|
||||||
When I run "osrm-routed --fly-me-to-the-moon"
|
When I run "osrm-routed --fly-me-to-the-moon"
|
||||||
Then it should exit with code 255
|
Then it should exit with code 255
|
||||||
Then stdout should be empty
|
Then stdout should be empty
|
||||||
And stderr should contain "unrecognised option '--fly-me-to-the-moon'"
|
And stderr should contain "unrecognised option '--fly-me-to-the-moon'"
|
||||||
|
|
||||||
@todo
|
|
||||||
Scenario: Missing file
|
Scenario: Missing file
|
||||||
When I run "osrm-routed overtherainbow.osrm"
|
When I run "osrm-routed overtherainbow.osrm"
|
||||||
Then it should exit with code 255
|
Then it should exit with code 255
|
||||||
Then stdout should be empty
|
And stderr should contain "does not exist"
|
||||||
And stderr should contain "missing"
|
|
||||||
|
@ -185,6 +185,7 @@ int main (int argc, const char * argv[])
|
|||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
std::cerr << "[fatal error] exception: " << e.what() << std::endl;
|
std::cerr << "[fatal error] exception: " << e.what() << std::endl;
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
munlockall();
|
munlockall();
|
||||||
|
Loading…
Reference in New Issue
Block a user