Make test more tolerant to filesystem faults

This commit is contained in:
Antony Polukhin
2017-03-17 07:25:18 +03:00
parent b6fad0f575
commit 9d0a2df72f

View File

@@ -91,7 +91,8 @@ inline void copy_and_run(const char* exec_name, char param, bool not_null) {
const int ret = std::system(command_args.string().c_str());
std::cout << "End Running with param " << param << "; ret code is " << ret << std::endl;
boost::filesystem::remove(command);
boost::system::error_code ignore;
boost::filesystem::remove(command, ignore);
if (not_null && !ret) {
std::exit(97);
} else if (!not_null && ret) {