Uploaded image for project: 'IoTivity'
  1. IoTivity
  2. IOT-1562

Unit test segfault in the services folder

    XMLWordPrintable

    Details

    • Found in Version/s:
      master
    • Operating System:
      Ubuntu
    • Issue Severity:
      Normal
    • Reproducibility:
      Always (100%)

      Description

      When building with the following command
      scons TARGET_TRANSPORT=IP TEST=1 RELEASE=false

      The unit tests found in the services segfault

      segfaults are found in the following tests.

      NotificationServiceConsumerTest.
        DiscoverProviderWithNonAccepterWhenStartedConsumerFirst
        DiscoverProviderWithNonAccepterWhenStartedConsumerAfter
        DiscoverProviderWithNonAccepterWhenRescan
        ExpectSubscribeSuccess
        DiscoverProviderWithAccepterisProvider
        ExpectGetProviderSuccessWithValidProviderId
        ExpectEQTopicList
        ExpectFailUpdateTopicOnConsumer
      
      EasysetupMediatorTest.
        createremoteenrolleeSucceedWithProvResource
      GetConfigurationTest.
        GetConfigurationSucceed
      GetStatusTest.
        GetStatusSucceed
      ProvisionDevicePropertiesTest.    
        ThrowExceptionWhenProvisionDeviceProperiesFailedWithoutSSID
        ProvisionDeviceProperiesSucceed
      ProvisionCloudPropertiesTest.
        ThrowExceptionWhenProvisionCloudPropertiesFailedWithoutAuthCode
        ThrowExceptionWhenProvisionCloudPropertiesFailedWithoutAuthProvider
        ThrowExceptionWhenProvisionCloudPropertiesFailedWithoutCIServer
        ProvisionCloudPropertiesSucceed
      
      EasysetupEnrolleeTest.
        FindProvisioningResourceAtEnrolleeWithSuccess
        DevicePropertyIsWellConstructedInResponsePayload
        ProvisioningPropertiesIsWellConstructedInResponsePayload
        WiFiAndDevConfProperiesProvisionedWithSuccess
        CloudServerProperiesProvisionedWithSuccess
        GetWifiRsrcTest
        GetCloudRsrcTest
        GetDevConfTest
        PutRequestTest
      
      

      Also the following tests fail without a segfault:

      [  FAILED  ] 8 tests, listed below:
      [  FAILED  ] NotificationServiceConsumerTest.ExpectReceiveNotification
      [  FAILED  ] NotificationServiceConsumerTest.ExpectReceiveNotificationWithAccepterisProvider
      [  FAILED  ] NotificationServiceConsumerTest.ExpectCallbackReadCheckWhenProviderNotifySync
      [  FAILED  ] NotificationServiceConsumerTest.ExpectCallbackDismissCheckWhenProviderNotifySync
      [  FAILED  ] NotificationServiceConsumerTest.ExpectCallbackReadCheckWhenConsumerPostSync
      [  FAILED  ] NotificationServiceConsumerTest.ExpectCallbackDismissCheckWhenConsumerPostSync
      [  FAILED  ] NotificationServiceConsumerTest.ExpectCallbackTopicUpdated
      [  FAILED  ] NotificationServiceConsumerTest.ExpectCallbackDeletedProvider
      

      How to reproduce:
      build with the TEST=1 build flag.
      scons TARGET_TRANSPORT=IP TEST=1 RELEASE=false

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              jyong2 JungYong KIM
              Reporter:
              georgen George Nash
            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: