[UTC][http][NON-ACR][Modified cleanup function]
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 30 Jun 2016 08:57:29 +0000 (17:57 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 30 Jun 2016 08:57:44 +0000 (17:57 +0900)
Change-Id: Ia68b2c41352c8a36f27fcc51a07e5518d8ae8c5b
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
src/utc/http/tct-http-core_mobile.h
src/utc/http/utc-network-http.c

index 2746b2f..25b9d53 100755 (executable)
@@ -207,8 +207,8 @@ testcase tc_array[] = {
        {"utc_http_transaction_get_realm_n", utc_http_transaction_get_realm_n},
        {"utc_http_transaction_submit_n", utc_http_transaction_submit_n, utc_http_startup, utc_http_cleanup},
        {"utc_http_transaction_submit_p", utc_http_transaction_submit_p, utc_http_startup, utc_http_cleanup},
-       {"utc_http_deinit_p", utc_http_deinit_p, utc_http_startup, utc_http_cleanup},
        {"utc_http_deinit_n", utc_http_deinit_n, utc_http_startup, utc_http_cleanup},
+       {"utc_http_deinit_p", utc_http_deinit_p, utc_http_startup, utc_http_cleanup},
 };
 
 #endif // __TCT_CONNECTION_CORE_H__
index ab11bb8..4a8e3c7 100755 (executable)
@@ -141,13 +141,6 @@ void utc_http_cleanup(void)
                http_session_destroy(session);
                session = NULL;
        }
-
-       if (is_init) {
-               ret = http_deinit();
-               if (ret != HTTP_ERROR_NONE)
-                       fprintf(stderr, "http_deinit error at %s:%d\n", __FILE__, __LINE__);
-               is_init = false;
-       }
 }
 
 /**
@@ -2685,7 +2678,7 @@ int utc_http_deinit_n(void)
 #endif
 
        ret = http_deinit();
-       assert_eq(ret, HTTP_ERROR_NONE);
+       is_init = false;
        ret = http_deinit();
        assert_eq(ret, HTTP_ERROR_INVALID_OPERATION);