Fix testsuite bug 27/103327/1
authorJeongho Mok <jho.mok@samsung.com>
Wed, 7 Dec 2016 07:19:40 +0000 (16:19 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Thu, 8 Dec 2016 05:29:58 +0000 (21:29 -0800)
[Version] 0.3.85
[Profile] Common
[Issue Type] testsuite

Change-Id: I39cf31cb563f07281c64ef7979b685213efa6d4e

packaging/capi-media-sound-manager.spec
test/sound_manager_test.c

index fcae45e..9981f27 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.3.84
+Version:    0.3.85
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 501828c..92438eb 100644 (file)
@@ -210,7 +210,7 @@ void _interpret_main_menu(char *cmd)
                g_menu_state = CURRENT_STATUS_UNSET_DEVICE_CONNECTED_CB;
        else if (strncmp(cmd, "adcc", 4) == 0)
                g_menu_state = CURRENT_STATUS_ADD_DEVICE_CONNECTION_CHANGED_CB;
-       else if (strncmp(cmd, "rdcc", 3) == 0)
+       else if (strncmp(cmd, "rdcc", 4) == 0)
                g_menu_state = CURRENT_STATUS_REMOVE_DEVICE_CONNECTION_CHANGED_CB;
        else if (strncmp(cmd, "si", 3) == 0)
                g_menu_state = CURRENT_STATUS_SET_DEVICE_INFO_CHANGED_CB;
@@ -261,7 +261,7 @@ void _interpret_main_menu(char *cmd)
        else if (strncmp(cmd, "vdt", 3) == 0)
                g_menu_state = CURRENT_STATUS_DESTROY_VIRTUAL_STREAM;
 #ifndef TIZEN_FEATURE_TV_PROD
-       if (strncmp(cmd, "mgx", 3) == 0)
+       else if (strncmp(cmd, "mgx", 3) == 0)
                g_menu_state = CURRENT_STATUS_GET_MAX_MASTER_VOLUME;
        else if (strncmp(cmd, "msv", 3) == 0)
                g_menu_state = CURRENT_STATUS_SET_MASTER_VOLUME;
@@ -425,6 +425,10 @@ static void displaymenu()
                g_print("*** press enter to set device connected cb\n");
        else if (g_menu_state == CURRENT_STATUS_UNSET_DEVICE_CONNECTED_CB)
                g_print("*** press enter to unset device connected cb\n");
+       else if (g_menu_state == CURRENT_STATUS_ADD_DEVICE_CONNECTION_CHANGED_CB)
+               g_print("*** press enter to add device connected cb\n");
+       else if (g_menu_state == CURRENT_STATUS_REMOVE_DEVICE_CONNECTION_CHANGED_CB)
+               g_print("*** press enter to remove device connected cb\n");
        else if (g_menu_state == CURRENT_STATUS_SET_DEVICE_INFO_CHANGED_CB)
                g_print("*** press enter to set device information changed cb\n");
        else if (g_menu_state == CURRENT_STATUS_UNSET_DEVICE_INFO_CHANGED_CB)