Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ublox-at-cellular-interface
Dependents: example-ublox-at-cellular-interface-ext HelloMQTT ublox_new_driver_test example-ublox-at-cellular-interface-ext ... more
Diff: TESTS/unit_tests/ftp/main.cpp
- Revision:
- 27:12b47e78f601
- Parent:
- 11:3631f62bb359
- Child:
- 30:da746bc48735
--- 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