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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0576 Actions


    Problem Report Number 0576
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0180
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 4.1.6
    Test Identification POSIX.annexC/fort77 60
    Problem Summary PG4C.00097 This IR claims that the operand to find -atime is being used improperly.
    Problem Text

    We think that the following "-atime" option for "find" will
    be incorrect in assertion #60.

    find libDUMMY.a -atime -1 -print > $CT_STDOUT 2> $CT_STDERR


    The "-atime" option is described in CAE specification as follows:

    True if the file access time subtracted from
    the "find" command activation time is n-1 to n
    multiples of 24 hours. For example, -atime 3
    is true if the file was accessed any time in
    the period from 72 to 48 hours ago.

    And, "n" of "-atime n" is described:

    The primary will evaluate as true if the file acess
    time subtract from the initialisation time is n-1 to
    n multiples of 24 hours.

    So, "-atime 1" mean "files accessed during the last 24 hours",
    and "-atime -1" mean "files will be accessed during this 24
    hours". It is because "-n" means "less than n".

    current
    +----------+----------+----------+----------+
    n-1 n
    ------ -n -----><--- n ----><--- +n ------

    Now, "libDUMMY.a" is accessed by fort77 before "find",
    so "find" never return anything.

    We think that "find libDUMMY.a -atime 1 -print" will be
    correct. We believe there is an error in test #60.

    Test Output
    - --------- fort77

    #60
    Assertion #60 (C): -l LIB seraches libLIB.a
    Standard output isn't the same as file 'fort77_out_60_1'
    diff of "out.stdout" and "fort77_out_60_1":
    *** out.stdout Wed Oct 2 11:13:32 1996
    --- fort77_out_60_1 Wed Oct 2 11:13:32 1996
    ***************
    *** 0 ****
    --- 1 ----
    + libDUMMY.a
    - -------------------------------------------------------------------------
    Failed Unresolved Uninitiated Unsupported

    fort77 60 fort77 26
    fort77 55

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused. We believe the test is correct.

    The find OPERANDS section states that -n means, "less than n," and in
    this content, less than n 24-hour time periods (24*n hours) ago. The
    EXAMPLES section on page 349 describes the meaning of this related to
    atime:

    7. The descriptions of -atime, -ctime and -mtime
    use the terminology n ``24-hour periods''.
    For example, a file accessed at 23:59 will be
    selected by:

    find . -atime -1 -print

    at 00:01 the next day (less than 24 hours
    later, not more than one day ago); the
    midnight boundary between days has no effect
    on the 24-hour calculation.

    The meaning of n and -n are different. Using n refers to a particular
    range of time, n-1 to n, in the past. Using -n refers to a block of time less than a n in the past.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority