From 7d4fbaab981378af6b07370aff89367b0d3fd5a9 Mon Sep 17 00:00:00 2001 From: Bartlomiej Kunikowski Date: Thu, 15 Sep 2016 16:22:23 +0200 Subject: [PATCH] Fix smoke test - add missing assertions Change-Id: I3de08191f7c764d78da743e9e24055f0c4f5bcb3 --- src/unit_tests/smoke_test.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/unit_tests/smoke_test.cc b/src/unit_tests/smoke_test.cc index 0d619cc..b40b3dd 100644 --- a/src/unit_tests/smoke_test.cc +++ b/src/unit_tests/smoke_test.cc @@ -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) { -- 2.7.4