Fixture for StepGenerateXml 55/45655/1
authorTomasz Iwanek <t.iwanek@samsung.com>
Fri, 7 Aug 2015 09:37:40 +0000 (11:37 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Fri, 7 Aug 2015 13:57:03 +0000 (15:57 +0200)
Platform manifest should be removed on rollback.

Change-Id: I1e98f76e63306668a2ef7b960f2193d9fdaf2e0b

src/common/step/step_generate_xml.cc

index 31f0299..c945f40 100755 (executable)
@@ -304,10 +304,12 @@ Step::Status StepGenerateXml::process() {
   return Status::OK;
 }
 
-Step::Status  StepGenerateXml::undo() {
+Step::Status StepGenerateXml::undo() {
+  bs::error_code error;
   if (fs::exists(icon_path_))
-    fs::remove_all(icon_path_);
-
+    fs::remove_all(icon_path_, error);
+  if (fs::exists(context_->xml_path.get()))
+    fs::remove_all(context_->xml_path.get(), error);
   return Status::OK;
 }