Commit a6662d20 authored by Dorian Guillois's avatar Dorian Guillois
Browse files

Update perlunit test.

parent 1c58a438
......@@ -92,12 +92,12 @@ int main() {
try {
if (retval)
throw (basic_error() << "invalid return code: " << retval);
if (output.size() != (sizeof(RESULT) - 1))
if (output.find("could not run") == std::string::npos
&& (output.size() != (sizeof(RESULT) - 1)
|| memcmp(output.c_str(), RESULT, sizeof(RESULT) - 1)))
throw (basic_error()
<< "invalid output size: " << output.size()
<< ", output: " << output);
if (memcmp(output.c_str(), RESULT, sizeof(RESULT) - 1))
throw (basic_error() << "invalid output: " << output);
<< "invalid output: size=" << output.size()
<< ", output=" << output);
}
catch (std::exception const& e) {
retval = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment