HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 0058 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 0058.


Report 0058 Actions


    Problem Report Number 0058
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0058
    Raised 1993-01-04 08:00
    Updated 2003-03-13 08:00
    Published 1993-02-19 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.2.4
    Test Identification dm.isam/rec/various various
    Problem Summary TSD4.058 This problem is a bug in the test suite. Instead of checking the first 10 bytes of the resulting buffer, the tests check 15 bytes. In various tests (as listed below), the test writes a record of 15 by...
    Problem Text
    This problem is a bug in the test suite. Instead of checking the
    first 10 bytes of the resulting buffer, the tests check 15 bytes.

    In various tests (as listed below), the test writes a record of
    15 bytes, then updates it to contain only 10 bytes. The test then
    reads the record (now with 10 bytes of data), and checks 15 bytes
    of the buffer that was read (rdbuf) to see if it's equal to another
    buffer (storebuf), ostensibly containing the data that should be in
    the record. The problem is that storebuf contains the entire 15 bytes
    of original data written to the record, and the test checks *15* bytes
    of data instead of 10. Since rdbuf only contains the first 10 bytes,
    the check fails. The solution is to verify only 10 bytes of data by
    setting testlen to TBUFSIZE instead of 3*TBUFSIZE/2.

    The tests with this error are:
    isrewcurr 8
    isrewrec 8
    isrewrite 8
    iswrcurr 7
    iswrite 7
    Test Output

    ************************************************************************
    /tset/dm.isam/rec/isrewcurr/T.isrewcurr 8 Failed

    Test Description:
    If variable record length file types are supported, when isfd is a
    valid file descriptor for a variable record length file, the number of
    bytes in the record buffer that are written in the actual record will
    be taken from the value of the global integer isreclen.
    (This test is not executed in XPG3 mode)

    Test Strategy:
    INITIALISE isreclen to TBUFSIZE
    INITIALISE recordlength to 2*TBUFSIZE
    CREATE ISAM file using isbuild() with ISVARLEN
    INITIALISE isreclen to 3*TBUFSIZE/2
    WRITE new record from write buffer
    READ record by key value into read buffer
    VERIFY read buffer contains contents of first record
    UPDATE write buffer up to 2*TBUFSIZE
    INITIALISE isreclen to TBUFSIZE
    REWRITE current record using isrewcurr() from write buffer
    VERIFY that isrewcurr() returns success
    READ record by key value into read buffer
    VERIFY read buffer contains TBUFSIZE bytes from rewritten record and
    is unmodified beyond TBUFSIZE
    UPDATE write buffer up to 2*TBUFSIZE
    INITIALISE isreclen to 2*TBUFSIZE
    REWRITE current record using isrewcurr() from write buffer
    VERIFY that isrewcurr() returns success
    READ record by key value into read buffer
    VERIFY read buffer contains the rewritten record
    CLOSE ISAM file
    REMOVE ISAM file

    Test Information:
    isrewcurr() did not write isreclen (10) bytes to file isrewc-t.2
    instead, isrewcurr() wrote 10 bytes
    min. record length: 10; max. record length: 20;

    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a test suite deficiency in VSX 4.2.4.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority