Fix smoke test - add missing assertions 52/88452/2
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Thu, 15 Sep 2016 14:22:23 +0000 (16:22 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Tue, 27 Sep 2016 09:17:54 +0000 (02:17 -0700)
Change-Id: I3de08191f7c764d78da743e9e24055f0c4f5bcb3

src/unit_tests/smoke_test.cc

index 0d619cc..b40b3dd 100644 (file)
@@ -512,7 +512,7 @@ TEST_F(SmokeTest, RDSMode) {
       kTestUserId);
   ASSERT_FALSE(bf::exists(root_path / pkgid / "res" / "wgt" / "DELETED"));
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "ADDED"));
-  ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "2\n");
+  ASSERT_TRUE(ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "2\n"));
 }
 
 TEST_F(SmokeTest, EnablePkg) {
@@ -580,7 +580,7 @@ TEST_F(SmokeTest, DeltaMode) {
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "css" / "style.css"));  // NOLINT
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "images" / "tizen_32.png"));  // NOLINT
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "js" / "main.js"));
-  ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "version 2\n");
+  ASSERT_TRUE(ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "version 2\n"));
 }
 
 TEST_F(SmokeTest, RecoveryMode_ForInstallation) {
@@ -767,8 +767,8 @@ TEST_F(SmokeTest, DeltaMode_Hybrid) {
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "css" / "style.css"));  // NOLINT
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "images" / "tizen_32.png"));  // NOLINT
   ASSERT_TRUE(bf::exists(root_path / pkgid / "res" / "wgt" / "js" / "main.js"));
-  ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "version 2\n");
-  ValidateFileContentInPackage(pkgid, "lib/MODIFIED", "version 2\n");
+  ASSERT_TRUE(ValidateFileContentInPackage(pkgid, "res/wgt/MODIFIED", "version 2\n"));
+  ASSERT_TRUE(ValidateFileContentInPackage(pkgid, "lib/MODIFIED", "version 2\n"));
 }
 
 TEST_F(SmokeTest, MountInstallationMode) {