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 <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarAshok Babu Channa <>
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