ublox-at-cellular-interface-ext

Dependencies:   ublox-at-cellular-interface

Files at this revision

API Documentation at this revision

Comitter:
mudassar0121
Date:
Mon Aug 19 12:25:22 2019 +0500
Parent:
26:10f59cd0b659
Child:
28:4427f2e6bbab
Commit message:
NULL comparison removed to avoid comparison between 'char *' and 'int'

Changed in this revision

TESTS/unit_tests/ftp/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TESTS/unit_tests/ftp/main.cpp	Thu Aug 08 17:37:24 2019 +0500
+++ b/TESTS/unit_tests/ftp/main.cpp	Mon Aug 19 12:25:22 2019 +0500
@@ -261,9 +261,9 @@
     tr_debug("Listing:\n%s", buf);
 
     // The file we will GET should appear in the directory listing
-    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_FILENAME) > NULL);
+    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_FILENAME));
     // As should the directory name we will change to
-    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_DIRNAME) > NULL);
+    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_DIRNAME));
 }
 
 // Test FTP file information
@@ -275,7 +275,7 @@
     tr_debug("File info:\n%s", buf);
 
     // The file info string should at least include the file name
-    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_FILENAME) > NULL);
+    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_FILENAME));
 }
 
 #if MBED_CONF_APP_FTP_SERVER_SUPPORTS_WRITE
@@ -433,7 +433,7 @@
     tr_debug("Listing:\n%s", buf);
 
     // The listing should include the directory name we are going to move to
-    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_DIRNAME) > NULL);
+    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_DIRNAME));
 
     // Change directories
     TEST_ASSERT(pDriver->ftpCommand(UbloxATCellularInterfaceExt::FTP_CD,
@@ -458,7 +458,7 @@
     tr_debug("Listing:\n%s", buf);
 
     // The listing should include the directory name we went to once more
-    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_DIRNAME) > NULL);
+    TEST_ASSERT(strstr(buf, MBED_CONF_APP_FTP_DIRNAME));
 }
 
 #ifdef MBED_CONF_APP_FTP_FOTA_FILENAME