Source
177
177
{
178
178
return *msf_p;
179
179
}
180
180
181
181
void MsFactoryTVITester::TearDown()
182
182
{
183
183
//The MS destructor will update the file system, so deleting it before removing the directory
184
184
msf_p.reset();
185
185
ms_p.reset();
186
186
vi_p.reset();
187
-
//This will recursively remove everything in the temporary directory
188
-
//unless environment var CASA_TEST_KEEP_TEMP_DIR exists (with any value)
189
-
if(getenv("CASA_TEST_KEEP_TEMP_DIR") == NULL)
190
-
nftw(tmpdir_p, removeFile, 64, FTW_DEPTH | FTW_PHYS);
187
+
//This will recursively remove everything in the directory
188
+
nftw(tmpdir_p, removeFile, 64, FTW_DEPTH | FTW_PHYS);
191
189
}
192
190
193
191
MsFactoryTVITester::~MsFactoryTVITester()
194
192
{
195
193
}
196
194
197
195
198
196
//////////////////////////////////////////////////////////////////////////
199
197
// Convenience methods
200
198
//////////////////////////////////////////////////////////////////////////