disable virtual output tc for hal-tdm temporary 96/253996/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Mon, 8 Feb 2021 09:42:02 +0000 (18:42 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 22 Feb 2021 04:10:12 +0000 (13:10 +0900)
Change-Id: I3c2278f86219a563b26c1cca55494f1536ace9c6
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
haltests/src/tc_tdm_client.cpp

index 1856692..c314b54 100644 (file)
@@ -392,6 +392,7 @@ _tc_tdm_server_run(int *pipe_parent, int *pipe_child)
        }
 
        virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+       virtual_conf = 0;//temp for hal-api-tdm. have to erase.
        if (virtual_conf) {
                ret = tdm_display_add_output_create_handler(dpy, _tc_tdm_output_cb_create_handler, NULL);
                TDM_UT_GOTO_IF_FAIL(ret == TDM_ERROR_NONE, failed);
@@ -1509,6 +1510,7 @@ TEST_P(TDMClient, ClientCreateVOutput)
        const char name[TDM_NAME_LEN] = "Virtual Output";
 
        virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+       virtual_conf = 0;//temp for hal-api-tdm. have to erase.
        if (virtual_conf == 0) {
                EXPECT_EQ(virtual_conf, 0);
                return;
@@ -1628,6 +1630,7 @@ bool TDMVirtualOutput::PrepareVOutput(void)
        const char name[TDM_NAME_LEN] = "Virtual Output";
 
        virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+       virtual_conf = 0;//temp for hal-api-tdm. have to erase.
        if (virtual_conf == 0) return true;
 
        client = tdm_client_create(&ret);
@@ -1675,7 +1678,8 @@ TEST_F(TDMVirtualOutput, SetAvailableModes)
        int virtual_conf;
 
        if (this->voutput == NULL) {
-               virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1694,6 +1698,7 @@ TEST_F(TDMVirtualOutput, FailTestSetAvailableModes)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1713,6 +1718,7 @@ TEST_F(TDMVirtualOutput, SetPhysicalSize)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1729,6 +1735,7 @@ TEST_F(TDMVirtualOutput, FailTestSetPhysicalSize)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1753,6 +1760,7 @@ TEST_F(TDMVirtualOutput, AddCommitHandler)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1775,6 +1783,7 @@ TEST_F(TDMVirtualOutput, CommitDone)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1791,6 +1800,7 @@ TEST_F(TDMVirtualOutput, GetClientOutput)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1858,6 +1868,7 @@ TEST_F(TDMVirtualOutput, ConnectDisconnect)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1909,6 +1920,7 @@ TEST_F(TDMVirtualOutput, SetMode)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1963,6 +1975,7 @@ TEST_F(TDMVirtualOutput, SetModeNullObject)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }
@@ -1997,6 +2010,7 @@ TEST_F(TDMVirtualOutput, SetModeInvalidIndex)
 
        if (this->voutput == NULL) {
                virtual_conf = tdm_config_get_int(TDM_CONFIG_KEY_GENERAL_VIRTUAL_OUTPUT, 0);
+               virtual_conf = 0;//temp for hal-api-tdm. have to erase.
                EXPECT_EQ(virtual_conf, 0);
                return;
        }