Skip to content
Snippets Groups Projects
Commit 3d77bf70 authored by mnaveau's avatar mnaveau
Browse files

fix little bugs in the tests

parent f06cc59f
No related branches found
No related tags found
No related merge requests found
......@@ -693,5 +693,5 @@ int main(int argc, char *argv[])
{
std::cerr << msg << std::endl;
}
return 1;
return 0;
}
......@@ -237,6 +237,7 @@ namespace PatternGeneratorJRL
if (! srdf_stream.is_open())
{
const std::string exception_message (filename + " does not seem to be a valid file.");
cerr << exception_message << endl ;
throw std::invalid_argument(exception_message);
}
// Read xml stream
......
......@@ -181,5 +181,14 @@ int main()
delete anOptCholesky;
delete [] L;
delete [] A;
if (return_value == -1){
cout << "Failed test" << endl;
}
else
{
cout << "Passed test" << endl;
}
return return_value;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment