Back to home page

LXR

 
 

    


Warning, /testsuites/psxtests/psxndbm01/psxndbm01.doc is written in an unsupported language. File is not indexed.

0001 This File describes the concepts tested by this test suite.
0002 
0003 ndbm.h - routines to manage data files that contain key/data pairs.
0004 
0005 test suite name: PSXNDBM 01
0006 
0007 - A Simple test to check if NDBM methods are call-able.
0008   - Check if able to run the routine to Open Database.
0009   - Check if able to run the routine to store a record in database.
0010   - Check if able to run the routine to fetch a record from database.
0011   - Check if able to run the routine to close the database.
0012 
0013 - Test Cases for 'dbm_open()'.
0014   - Verify the error when trying to open existing file with 'O_RDWR | O_EXCL'
0015     flags.
0016   - Verify the error when trying to open file with pathname longer than
0017     {PATHMAX}-3 bytes.
0018   - Verify the error when trying to open file with only write access.
0019 
0020 - Test Cases for 'dbm_store()'.
0021   - Verify the error when trying to insert a record using same key with
0022     'DBM_INSERT' mode.
0023   - Verify the updated record when trying to insert a record using same key
0024     with 'DBM_REPLACE' mode.
0025   - Verify if able to save more than one record in database.
0026 
0027 - Test Cases for 'dbm_fetch()'.
0028   - Verify the data fetched from database.
0029   - Verify the error when tring to fetch non-existing record.
0030 
0031 - Test Cases for 'dbm_delete()'.
0032   - Veriy the error when trying to delete non-existing record.
0033   - Delete one record and verify results.
0034   - Check if correct record is deleted.
0035   - Verify if other data is not corrupted during delete.
0036   - Empty the databse and verify the value returned by 'dbm_firstkey()'.