From: Dan Mihai Date: Mon, 20 Feb 2017 17:01:53 +0000 (-0800) Subject: [IOT-1832] Restore error code X-Git-Tag: 1.3.0~603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c02b15007a806ebfeb8658024c7bd5d47f2b7798;p=platform%2Fupstream%2Fiotivity.git [IOT-1832] Restore error code Restore the error code expected by the unit test, recently modified by change df063552a4dfab53662653566fe73ed491820aaf. Change-Id: If5393030a4019485aad5dc0c13159b5b895dc2f8 Signed-off-by: Dan Mihai Reviewed-on: https://gerrit.iotivity.org/gerrit/17385 Tested-by: jenkins-iotivity Reviewed-by: Kevin Kane Reviewed-by: Nathan Heldt-Sheller Reviewed-by: Mike Fenelon --- diff --git a/resource/csdk/security/src/credresource.c b/resource/csdk/security/src/credresource.c index 10099ae..ad10ebc 100644 --- a/resource/csdk/security/src/credresource.c +++ b/resource/csdk/security/src/credresource.c @@ -2312,7 +2312,13 @@ OCStackResult InitCredResource() OicUuid_t emptyUuid = {.id={0}}; ret = GetDoxmDeviceID(&deviceID); - VERIFY_SUCCESS(TAG, ret == OC_STACK_OK, ERROR); + if (ret != OC_STACK_OK) + { + OIC_LOG_V(WARNING, TAG, "%s: GetDoxmDeviceID failed, error %d", __func__, ret); + //Unit tests expect error code OC_STACK_INVALID_PARAM. + ret = OC_STACK_INVALID_PARAM; + goto exit; + } //Add a log to track the invalid credential. LL_FOREACH(gCred, cred)