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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0779 Actions


    Problem Report Number 0779
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0294
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-08-20 08:00
    Product Standard Commands and Utilities V2 (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSC version 5.0.1
    Test Identification POSIX.upe/df 811
    Problem Summary TSD4C.00217 This test may fail on IUTs where the second line of df -P output prints zeros in fields 3 and 4.
    Problem Text

    Out of harnes, the suite is executing the following pipe with the
    following result:

    $ df -P | sed -n 2p | awk'{percent = ($3 / ($3 + $4)) * 100}'
    awk: line 0 (NR=1): division (/ or %) by zero

    The program uses awk to calculate the percentage disk used on the first
    filesystem listed by "df -P". On our implementation, that can be a
    zero-size filesystem:

    $ df -P | sed -n 2p
    /proc 0 0 0 0% /proc
    $

    The test suite has no reason to suppose ($3 + $4) is not zero, and no
    business trying to divide by it.

    Test Output


    110|0 /tset/POSIX.upe/df/df.ex 17:18:00|Build Start, scenario ref 1158-1
    15|0 1.10 1|TCM Start

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test
    suite version(s) listed.

    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