fix: sporadic in software tags test

Related-To: NEO-9272

Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
This commit is contained in:
Konstanty Misiak
2023-11-06 18:30:26 +00:00
committed by Compute-Runtime-Automation
parent 10a97548c2
commit c160e6ff93
2 changed files with 22 additions and 10 deletions

View File

@@ -208,7 +208,11 @@ SWTagBXML::SWTagBXML() {
str = ss.str();
if (DebugManager.flags.DumpSWTagsBXML.get()) {
writeDataToFile("swtagsbxml_dump.xml", str.c_str(), str.size());
FILE *fp = NEO::IoFunctions::fopenPtr("swtagsbxml_dump.xml", "wb");
if (fp) {
NEO::IoFunctions::fwritePtr(str.c_str(), sizeof(char), str.size(), fp);
NEO::IoFunctions::fclosePtr(fp);
}
}
}