Skip to content

Commit 9f68fe4

Browse files
committed
Make test more tolerant to filesystem faults
1 parent b6fad0f commit 9f68fe4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/terminate_handler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ inline void copy_and_run(const char* exec_name, char param, bool not_null) {
9191
const int ret = std::system(command_args.string().c_str());
9292

9393
std::cout << "End Running with param " << param << "; ret code is " << ret << std::endl;
94-
boost::filesystem::remove(command);
94+
boost::system::error_code ignore;
95+
boost::filesystem::remove(command, ignore);
9596
if (not_null && !ret) {
9697
std::exit(97);
9798
} else if (!not_null && ret) {

0 commit comments

Comments
 (0)