Removes file at path. Assuming we created it in setUpGuardFile.
| 179 | |
| 180 | // Removes file at path. Assuming we created it in setUpGuardFile. |
| 181 | void tearDownGuardFile( std::string const& guardFilePath ) { |
| 182 | if ( !guardFilePath.empty() ) { |
| 183 | const int ret = std::remove( guardFilePath.c_str() ); |
| 184 | CATCH_ENFORCE( |
| 185 | ret == 0, |
| 186 | "Error when removing the exit guard file: " << ret ); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | } // anon namespace |
| 191 |