Update snapshot(2018-01-04)
[platform/upstream/iotivity.git] / resource / unittests / OCPlatformTest.cpp
index f671cd3..bed8cf3 100644 (file)
@@ -41,7 +41,7 @@ namespace OCPlatformTest
                 << "' " << std::endl;
         return fopen(SVR_DB_FILE_NAME, mode);
     }
-    OCPersistentStorage gps {client_open, fread, fwrite, fclose, unlink };
+        OCPersistentStorage gps {client_open, fread, fwrite, fclose, unlink, NULL, NULL };
 
     // Callbacks
     OCEntityHandlerResult entityHandler(std::shared_ptr<OCResourceRequest> /*request*/)
@@ -163,7 +163,10 @@ namespace OCPlatformTest
         return resourceHandle;
     }
 
-    TEST(ConfigureTest, ConfigureInvalidModeType)
+    //Configure
+    // Enable it when the stack throw an exception
+    // https://jira.iotivity.org/browse/IOT-428
+    TEST(ConfigureTest, DISABLED_ConfigureInvalidModeType)
     {
         PlatformConfig cfg {
              OC::ServiceType::InProc,
@@ -176,7 +179,9 @@ namespace OCPlatformTest
          EXPECT_ANY_THROW(OCPlatform::setDefaultDeviceEntityHandler(NULL));
      }
 
-    TEST(ConfigureTest, ConfigureInvalidServiceType)
+    // Enable it when the stack throw an exception
+    // https://jira.iotivity.org/browse/IOT-428
+    TEST(ConfigureTest, DISABLED_ConfigureInvalidServiceType)
     {
         PlatformConfig cfg {
              (OC::ServiceType)99,
@@ -189,7 +194,9 @@ namespace OCPlatformTest
          EXPECT_ANY_THROW(OCPlatform::setDefaultDeviceEntityHandler(NULL));
      }
 
-    TEST(ConfigureTest, ConfigureClientOutProc)
+    // Enable it when the stack throw an exception
+    // https://jira.iotivity.org/browse/IOT-428
+    TEST(ConfigureTest, DISABLED_ConfigureClientOutProc)
     {
         PlatformConfig cfg {
             OC::ServiceType::OutOfProc,