Added test for app_label_shared_dir on same subject as object behaviour
authorJan Cybulski <j.cybulski@samsung.com>
Tue, 2 Apr 2013 11:09:41 +0000 (13:09 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 23 Jan 2014 13:19:16 +0000 (14:19 +0100)
[Issue#]   SSDWSSP-154
[Feature]  Tests for new functionalities.
[Cause]    Change in libsmack.
[Solution] Test checks what the function does when labels are equal
[Verification] Successful build. Running the tests

Change-Id: I59adbe589817172594187473d51a22fb5b2cc1d8

tests/libprivilege-control-tests/test_cases.cpp

index 656b0e4..e15f239 100644 (file)
@@ -346,6 +346,9 @@ RUNNER_TEST(privilege_control02_app_label_dir)
 {
     int result;
 
+    result = app_label_shared_dir(APP_ID, APP_ID, TEST_APP_DIR);
+    RUNNER_ASSERT_MSG(result != 0, "app_label_shared_dir(APP_ADD, APP_ID) == " << result);
+
     result = nftw(TEST_APP_DIR, &nftw_remove_labels, FTW_MAX_FDS, FTW_PHYS);
     RUNNER_ASSERT_MSG(result == 0, "Unable to clean up Smack labels in " << TEST_APP_DIR);