Rtos API example
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 Sun Jul 17 2022 08:25:34 by 1.7.2