checktestdata icon indicating copy to clipboard operation
checktestdata copied to clipboard

Don't crash when providing (by mistake) a directory instead of a file.

Open RaphaelMarinier opened this issue 1 year ago • 0 comments

Before this commit, running: ./checktestdata <spec_file> would crash with:

terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_create Aborted (core dumped)

is not expected by checktestdata, and it should be a filename instead. Still, checktestdata should return an error instead of crashing.

RaphaelMarinier avatar Dec 09 '24 14:12 RaphaelMarinier