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.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
close.cpp File Reference
Test cases to close KVs in the CFSTORE using the drv->Close() API function. More...
Go to the source code of this file.
Functions | |
control_t | cfstore_close_test_01_end (const size_t call_count) |
The is a basic test case which does the following:
|
Detailed Description
Test cases to close KVs in the CFSTORE using the drv->Close() API function.
Please consult the documentation under the test-case functions for a description of the individual test case.
Definition in file close.cpp.
Function Documentation
control_t cfstore_close_test_01_end | ( | const size_t | call_count ) |
The is a basic test case which does the following:
- 01.
create a key with handle hkey1
- 02. write data of hkey1
- 03. opens KV with 2nd handle, hkey2
- 04. read data with hkey2 and make sure its the same as that written with hkey1
- 05. write new data with hkey2
- 06. delete hkey2
- 07. close hkey2
- 08. read hkey1 and make sure the data is the newly written data i.e. the key hasnt been deleted yet
- 09. try to open KV and make sure unable to do so, as KV is deleting
- 10. close hkey1
- 11. try to open KV and make sure unable to do so because its now been deleted
- 12. create new KV with same key_name to make sure can re-create the key again.
- Returns:
- on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Generated on Tue Jul 12 2022 11:03:01 by
