Warning, /testsuites/psxtests/psxndbm01/psxndbm01.scn is written in an unsupported language. File is not indexed.
0001 *** PSXNDBM 01 Test ***
0002
0003 Open Database.
0004 Store Records in Database.
0005 Fetch Records from Database and check.
0006 Close Database.
0007
0008 Testcases for 'dbm_open()'.
0009 Use 'O_CREAT | O_EXCL' to open existing file and confirm error.
0010 Use path name larger than '{PATH_MAX}-3 bytes.' and confirm error.
0011 Open file with write access only and confirm error.
0012
0013 Testcases for 'dbm_store()'
0014 Insert new record with same key using 'DBM_INSERT' mode and confirm error.
0015 Insert new record with same key using 'DBM_REPLACE' mode and confirm changes.
0016 Store a new record and confirm that total number of records is successful 2.
0017
0018 Testcases for 'dbm_fetch()'
0019 Fetch existing records and confirm results.
0020 Fetch non-existing record and confirm error.
0021
0022 Testcases for 'dbm_delete()'
0023 Delete non-existing record and confirm error.
0024 Delete existing record and confirm that total number of records is successful 1.
0025 Confirm if correct record is deleted.
0026 Check if the data is not corrupted after usage of 'dbm_delete()'.
0027 Empty records in database and check results of 'dbm_firstkey()'.
0028
0029 *** END OF TEST PSXNDBM 01 ***