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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2553 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 2553.


Report 2553 Actions


    Problem Report Number 2553
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1322
    Raised 2011-03-03 02:47
    Updated 2011-03-08 12:11
    Published 2011-03-08 12:11
    Product Standard Commands and Utilities V4 (UNIX 03)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.3.2
    Test Identification POSIX.cmd/cmp/cmp.ex {14,15,18}
    Specification Shell and Utilities Issue 6
    Location in Spec http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cmp.html
    Problem Summary UNIX03 POSIX.cmd/cmp/cmp.ex{14,15,18} failure with cmp passes on Solaris
    11.
    Problem Text The issue is with the way /usr/bin/cmp compares file.
    $cmp a.c ./a.c

    For Solaris 11, cmp has changed in implementation. cmp does a fstat on
    both the files and sees if the the inode matches. Its a more efficient
    method of determining if the files are the same or not. If the inodes
    match, cmp returns 0. Otherwise it will actually open the files for
    reading to determine the differences, if any.

    For Solaris 10, no fstat is performed and files are opened for reading
    to determine differences. So for Solaris 10, its fine.

    The issue here is that some of the test suite checks for "atime" before
    and after the comparision. Since cmp doesn't do any file reading
    operation "atime" left untouched and tests fail for Solaris 11.
    Timestamps are not stated to be a factor in the standards for cmp so
    time should not be a factor when comparing files for differences with
    respect to content.
    Test Output POSIX.cmd/cmp/cmp.ex{14} FAIL
    Assertion #14 (A): Verify output of ga65.
    Expected exit code = 0; Received 1

    POSIX.cmd/cmp/cmp.ex{15} FAIL
    Assertion #15 (A): Verify output of ga66.
    Expected exit code = 0; Received 1

    POSIX.cmd/cmp/cmp.ex{18} FAIL
    Assertion #18 (A): Verify output of ga69.
    Expected exit code = 0; Received 1

    Review Information

    Review Type TSMA Review
    Start Date 2011-03-03 02:47
    Last Updated 2011-03-03 09:50
    Completed 2011-03-03 09:50
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a fault in the test suite.

    Review Type SA Review
    Start Date 2011-03-03 17:50
    Last Updated 2011-03-08 12:07
    Completed 2011-03-08 12:07
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion A test suite deficiency is granted

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority