Commit cac65bc7 authored by Veeraj Khokale's avatar Veeraj Khokale Committed by Ashok Babu Channa

Fix for Jira [IOT-1424]

Modified unit test to pass mutable string to CHPGetOCContentType().

Change-Id: Ic0ea5704ddff20dc67086296e54775ef8d677d69
Signed-off-by: default avatarVeeraj Khokale <veeraj.sk@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13013Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarAshok Babu Channa <ashok.channa@samsung.com>
parent b9b99474
......@@ -103,7 +103,8 @@ TEST_F(CoApHttpTest, CHPGetOCContentType)
{
HttpResponse_t httpResponse;
//char *httpContentType = "OC_FORMAT_CBOR";
char *httpContentType = "CBOR_CONTENT_TYPE";
char httpContentType[64];
strcpy(httpContentType, "application/cbor");
EXPECT_EQ(OC_FORMAT_CBOR, (CHPGetOCContentType(httpContentType)));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment