Skip to content
Snippets Groups Projects
Commit 189444f1 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

updated testing harness to handle bad files and expected exception throwing better

parent b2941ef7
No related branches found
No related tags found
No related merge requests found
Pipeline #4661 failed
......@@ -60,11 +60,24 @@ int main(int argc, char* argv[])
usage(argc,argv);
}
auto ehp = EHFrameParser_t::factory(argv[1]);
ehp->print();
try
{
auto ehp = EHFrameParser_t::factory(argv[1]);
ehp->print();
print_lps(ehp.get());
print_lps(ehp.get());
}
catch(const exception& e )
{
cout <<" libehp threw an exception, this may or may not be an error depending on the input file" << endl;
cout << e.what() << endl;
}
catch(...)
{
cout <<" ehp threw an exception of an unknonwn type -- this shouldn't happen " << endl;
abort();
};
return 0;
}
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