Fix for primitive build
authori.metelytsia <i.metelytsia@samsung.com>
Thu, 29 Jun 2017 13:11:25 +0000 (16:11 +0300)
committeri.metelytsia <i.metelytsia@samsung.com>
Thu, 29 Jun 2017 13:11:25 +0000 (16:11 +0300)
device_core/utest/test_iot_notification.cpp

index 3282fe8..28f1712 100644 (file)
@@ -91,6 +91,7 @@ static void notificationCb(NM_NotificationData data, void* inUserData)
  * 2. Check callback was called
  * 3. Check user data was transferd
  */
+#ifndef __BUILD_PRIMITIVE__
 TEST_F(TestIotNotification, correct)
 {
     std::mutex notificationMtx;
@@ -121,6 +122,7 @@ TEST_F(TestIotNotification, correct)
     // TODO Temporary disabled
     // ASSERT_TRUE(userDataCheck.lastCallbackFired);
 }
+#endif /* __BUILD_PRIMITIVE__ */
 
 static void notification2Cb(NM_NotificationData data, void* inUserData)
 {
@@ -140,6 +142,7 @@ static void notification2Cb(NM_NotificationData data, void* inUserData)
     userData->notificationCV.notify_all();
 }
 
+#ifndef __BUILD_PRIMITIVE__
 TEST_F(TestIotNotification, DISABLED_suspiciousReport)
 {
     std::mutex notificationMtx;
@@ -185,5 +188,5 @@ TEST_F(TestIotNotification, DISABLED_suspiciousReport)
     {
         ADD_FAILURE() << e.what();
     }
-
 }
+#endif /* __BUILD_PRIMITIVE__ */