[IoT-1562] Handle unit test segfaults at notification service
authorcc <ch79.cho@samsung.com>
Mon, 28 Nov 2016 12:39:35 +0000 (21:39 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 7 Dec 2016 10:34:17 +0000 (10:34 +0000)
commit681a1f3986d0f108c27e30d00c655bf1c32b5c25
tree3e522a902f596cd654225f99e6fa32407221980e
parent184a314ae009e80192d417cd4b573c9efa8a4e43
[IoT-1562] Handle unit test segfaults at notification service

Fix unittest segfault caused by discovery failure.
It is because external consumers or providers on the same network
interupt discovery or subscription precedure.
The test will be terminated once this situation happens,
even though precondition of the unittest is guided
to prevent this issue.

Change-Id: I0f763db760d8d2af0a185b9e7c3c6e71dfc5e5bf
Signed-off-by: cc <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14851
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit eb8ec52d48bb8def2a8862118d2fb97aed4c3c2f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14987
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
service/notification/cpp-wrapper/unittest/NSConsumerServiceTest.cpp
service/notification/cpp-wrapper/unittest/NSProviderServiceTest.cpp
service/notification/unittest/NSConsumerTest.cpp
service/notification/unittest/NSProviderTest.cpp