sound_manager_test: Exclude a test case for compiling with TIZEN_FEATURE_TV_PROD 20/211620/1 accepted/tizen/unified/20190808.113704 submit/tizen/20190807.082039
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 7 Aug 2019 07:32:39 +0000 (16:32 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 7 Aug 2019 07:37:13 +0000 (16:37 +0900)
sound_manager_set_virtual_stream_volume() test case is excluded.

[Version] 0.5.35
[Issue Type] Testsuite

Change-Id: I4d6cf7b4995a648b8566a926ab2b6bb922b9fd0d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
test/sound_manager_test.c

index d961b12..8257c2e 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.5.34
+Version:    0.5.35
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 40c2f8e..c3c4776 100644 (file)
@@ -89,7 +89,9 @@ enum {
        CURRENT_STATUS_START_VIRTUAL_STREAM,
        CURRENT_STATUS_STOP_VIRTUAL_STREAM,
        CURRENT_STATUS_DESTROY_VIRTUAL_STREAM,
+#ifndef TIZEN_FEATURE_TV_PROD
        CURRENT_STATUS_SET_VIRTUAL_STREAM_VOLUME,
+#endif
        CURRENT_STATUS_SET_FILTER,
        CURRENT_STATUS_SET_FILTER_PRESET,
        CURRENT_STATUS_UNSET_FILTER,
@@ -320,8 +322,10 @@ void _interpret_main_menu(char *cmd)
                g_menu_state = CURRENT_STATUS_STOP_VIRTUAL_STREAM;
        else if (strncmp(cmd, "vdt", MAX_CMD_LEN) == 0)
                g_menu_state = CURRENT_STATUS_DESTROY_VIRTUAL_STREAM;
+#ifndef TIZEN_FEATURE_TV_PROD
        else if (strncmp(cmd, "vsv", MAX_CMD_LEN) == 0)
                g_menu_state = CURRENT_STATUS_SET_VIRTUAL_STREAM_VOLUME;
+#endif
        else if (strncmp(cmd, "sft", MAX_CMD_LEN) == 0)
                g_menu_state = CURRENT_STATUS_SET_FILTER;
        else if (strncmp(cmd, "sfp", MAX_CMD_LEN) == 0)
@@ -438,7 +442,9 @@ void display_sub_basic()
        g_print("sso. *Set option for stream routing\n");
        g_print("vcr. *Create VStream\t");
        g_print("vsr. *Start VStream\t");
+#ifndef TIZEN_FEATURE_TV_PROD
        g_print("vsv. *Set VStream Volume\n");
+#endif
        g_print("vdt. *Destroy VStream\t");
        g_print("vst. *Stop VStream\n");
        g_print("sft. *Set Filter\t");
@@ -580,8 +586,10 @@ static void displaymenu()
                g_print("*** press enter to stop virtual stream\n");
        else if (g_menu_state == CURRENT_STATUS_DESTROY_VIRTUAL_STREAM)
                g_print("*** press enter to destroy virtual stream\n");
+#ifndef TIZEN_FEATURE_TV_PROD
        else if (g_menu_state == CURRENT_STATUS_SET_VIRTUAL_STREAM_VOLUME)
                g_print("*** input volume ratio of virtual stream (Min:0.0 ~ Max:1.0)\n");
+#endif
        else if (g_menu_state == CURRENT_STATUS_SET_FILTER)
                g_print("*** input filter type of media stream (0:LOW_PASS 1:HIGH_PASS 2:DELAY 3:SOUNDALIVE)\n");
        else if (g_menu_state == CURRENT_STATUS_SET_FILTER_PRESET)
@@ -2113,6 +2121,7 @@ static void interpret(char *cmd)
                reset_menu_state();
                break;
        }
+#ifndef TIZEN_FEATURE_TV_PROD
        case CURRENT_STATUS_SET_VIRTUAL_STREAM_VOLUME: {
                int ret = SOUND_MANAGER_ERROR_NONE;
                double ratio = 1.0;
@@ -2129,6 +2138,7 @@ static void interpret(char *cmd)
                reset_menu_state();
                break;
        }
+#endif
        case CURRENT_STATUS_SET_FILTER: {
                int ret = SOUND_MANAGER_ERROR_NONE;
                sound_filter_e filter;