Fixed build of nm for TM1
authorAndriy Gudz <a.gudz@samsung.com>
Wed, 26 Apr 2017 16:07:44 +0000 (19:07 +0300)
committerAndriy Gudz <a.gudz@samsung.com>
Wed, 26 Apr 2017 17:01:16 +0000 (20:01 +0300)
network-manager/test/test_iot_dev_manager.cpp

index 4c7aef0..d315351 100644 (file)
@@ -25,11 +25,13 @@ void each_callback(NM_hDeviceList list, const char* uid, void* param)
     NM_DeviceInfo info;
     ASSERT_EQ(EC_OK, NM_getDeviceInfo(list, uid, &info));
 
-    ASSERT_NE(nullptr, info.name);
+
+
+    ASSERT_STRNE(NULL, info.name);
     std::cout << "Device name: " << info.name << std::endl;
-    ASSERT_NE(nullptr, info.model);
+    ASSERT_STRNE(NULL, info.model);
     std::cout << "Device model: " << info.model << std::endl;
-    ASSERT_NE(nullptr, info.type);
+    ASSERT_STRNE(NULL, info.type);
     std::cout << "Device type: " << info.type << std::endl;
 
     NM_freeDeviceInfo(&info);