MCPcopy Create free account
hub / github.com/catchorg/Catch2 / tearDownGuardFile

Function tearDownGuardFile

src/catch2/catch_session.cpp:181–188  ·  view source on GitHub ↗

Removes file at path. Assuming we created it in setUpGuardFile.

Source from the content-addressed store, hash-verified

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

Callers 1

runInternalMethod · 0.70

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected