|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0938 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 0938.
Report 0938 Actions
Problem Report Number 0938 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0453 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-08-30 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/crontab 812 Problem Summary TSD4C.00056 The test may fail on all implementations if the test is run between 56 minutes, 0 seconds and 59 minutes, 59 seconds during any hour. Problem Text
The test may fail on all implementations if the test is run between
56 minutes, 0 seconds and 59 minutes, 59 seconds during any hour.
>From tp812():
m=$(date "+%M")
if [ $m -ge 57 ]
then
m="0-2"
else
m="$(expr $m + 2)-$(expr $m + 4)"
fi
echo "$m * * * * echo hi >>" $(pwd)/crontab_out_812_1 > crontab_in_812_c
If the time happens to be 56 minutes past the hour (such as 1:56), the test
will fail.
m=$(date "+%M")
m is equal to 56.
if [ $m -ge 57 ]
56 is not greater than or equal to 57, so we go to
m="$(expr $m + 2)-$(expr $m + 4)"
This results in m being set to 58-60
According to the Standard, valid numbers for the minute field are 0 - 59.
The line:
if [ $m -ge 57 ]
should be changed to:
if [ $m -ge 56 ]
Test Output
200|1 1 14:56:16|TP Start
520|1 1 6333 1 1|Assertion #812 (C): When an element in the
list corresponding to any of the firs...
520|1 1 6333 1 1|Expected exit code = 0; Received 1
520|1 1 6333 1 2|Standard error isn't empty
520|1 1 6333 1 3|Contents of out.stderr:
520|1 1 6333 1 4|UX:crontab: ERROR: 58-60 * * * * echo hi
>> /usr2/vsx4tet/vsc4/VSC4.1.4/tet_tmp_dir/6265a/crontab/
crontab_out_812_1
520|1 1 6333 1 5|: error on previous line;Number out of bounds.
520|1 1 6333 1 6|UX:crontab: ERROR: Errors detected in input, no
crontab file generated.
520|1 1 6333 1 7|Command failed: 'cmp crontab_eso_812_1
crontab_out_812_1 > /dev/null'
220|1 1 1 15:00:19|FAILReview 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 0938
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority