[Issue#] Return value not handled.
[Bug] no. 22805
[Cause] N/A
[Solution] Log error on remove fail.
[Verification] Build commons.
Change-Id: I1c20be3caaef13d43599b3ce5522d6cbde30c330
#include <dpl/scoped_fclose.h>
#include <string>
+#include <string.h>
#include <cstdio>
#include <fstream>
#include <sstream>
m_outputBuffer.erase(posBegin - 3, posEnd - posBegin + sizeof("</testcase>") + 2);
}
+ if(remove(m_filename.c_str())!=0){
+ LogError("Can't remove file. Error: " << strerror(errno));
+ }
- remove(m_filename.c_str());
m_fp.Reset(fopen (m_filename.c_str(), "w"));
Assert(!!m_fp && "File handle must not be null");
fseek(m_fp.Get(), 0L, SEEK_SET);