|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0854 Details Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 0854.
Report 0854 Actions
Problem Report Number 0854 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0369 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-12-20 08:00 Product Standard Commands and Utilities V2 (UNIX 95) Certification Program The Open Brand certification program Test Suite VSC version 4.1.4 Test Identification POSIX.upe/df 811 Problem Summary TSD4C.00142 This test may fail on implementations because the defined awk int() function is not being used correctly. Problem Text
This test may fail on implementations because the defined awk
int() function is not being used correctly.
Assertion 811 is using awk with non-XPG4 syntax, in particular
the following line:
printf("%d ", (percent == (int) percent) ? percent : percent + 1)
I cannot find any place in the XPG4 XCU V2, that states ISO C style casting
is to be supported. In fact, I can't find casting discussed in any AWK
reference. AWK has an internal function int() and this should be used
here.
The values causing the failure are as follows:
space used = 4864
space free = 3328
The calculation is (4864 / (4864 + 3328)) * 100 = 59.375
The spec requires rounding to the next highest integer, so the
percent value expected should be 60%, the testcase is expecting
59%.
Our implementation produces the following for df -P:
/dev/hd4 8192 4864 3328 60% /
Test Output
************************************************************************
/tset/POSIX.upe/df/df.ex 1 Failed
Test Information:
Assertion #811 (C): When <percentage used> is calclulated, then it
shall be obta...
got 60%, expected 59%
************************************************************************
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:
- View Report 0854
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority