Rtos API example

Embed: (wiki syntax)

« Back to documentation index

close.cpp File Reference

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:

  • 01.


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.

Definition at line 93 of file close.cpp.