fixes #958, activates 2 additional tests

This commit is contained in:
Dennis Luxen 2014-03-20 13:19:36 +01:00
parent c470ea9fa1
commit 8bd5f69e04
2 changed files with 4 additions and 6 deletions

View File

@ -34,16 +34,13 @@ Feature: Command line options
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"

View File

@ -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();