|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1421 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 1421.
Report 1421 Actions
Problem Report Number 1421 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0703 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-03-18 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification base/ulimit 1 2 Problem Summary TSD4U.00112 This test may fail on implementations which default the RLIMIT_FSIZE maximum to RLIM_INFINITY. Problem Text
This test may fail on implementations which default the RLIMIT_FSIZE
maximum to RLIM_INFINITY.
In the two programs CAPIbase/fulimit/fulimit1 and fulimit2, the test
start by setting a new limit for file size like this:
95 if (save.rlim_cur == RLIM_INFINITY)
96 {
97 tet_infoline("INFO: Limit for RLIMIT_FSIZE not
enforced on this system");
98 tet_result(TET_UNSUPPORTED);
99 return;
100 }
101
102 tet_infoline("TEST: ulimit() returns integer part of the
soft");
103 tet_infoline(" limit divided by 512");
104
105 setrlp.rlim_cur = save.rlim_cur+1;
106
107 if (save.rlim_max != RLIM_INFINITY)
108 setrlp.rlim_max = save.rlim_max+1;
109
110 if (setrlimit(RLIMIT_FSIZE, &setrlp) == -1)
111 {
112 fwerrno("setrlimit");
113 return;
114 }
In our case, the value for save.rlim_max is RLIM_INFINITY, which means
that setrlp.rlim_max is not initialized in line 108 or any other
place. We have tried to add the following two lines after line
108:
else
setrlp.rlim_max = RLIM_INFINITY;
After this, the tests PASSed.Test Output
10|1 /tset/CAPIbase/fulimit/fulimit1 17:06:19|TC Start, scenario ref 3-1, ICs {1}
15|1 1.10 1|TCM Start
400|1 1 1 17:06:20|IC Start
200|1 1 17:06:20|TP Start
520|1 1 9128 1 1|SPEC1170TESTSUITE CASE 1
520|1 1 9128 1 2|A successful call to long int ulimit(int cmd, ...)
520|1 1 9128 1 3|when cmd is UL_GETFSIZE shall return the soft file
520|1 1 9128 1 4|size limit of the process.
520|1 1 9129 1 1|PREP: Choose appropriate values for the soft and hard
520|1 1 9129 1 2| limits
520|1 1 9129 1 5|ERROR: setrlimit failed, errno = 22(EINVAL - Invalid argument)
220|1 1 1 17:06:20|FAIL
410|1 1 1 17:06:20|IC End
80|1 0 17:06:20|TC End
10|4 /tset/CAPIbase/fulimit/fulimit2 17:06:31|TC Start, scenario ref 4-1, ICs {2}
15|4 1.10 1|TCM Start
400|4 2 1 17:06:31|IC Start
200|4 1 17:06:31|TP Start
520|4 1 9145 1 1|SPEC1170TESTSUITE CASE 2
520|4 1 9145 1 2|On a call to long int ulimit(int cmd, ...) when cmd is
520|4 1 9145 1 3|UL_GETFSIZE the soft file size limit of the process
520|4 1 9145 1 4|returned by function shall be integer part of the soft
520|4 1 9145 1 5|file size limit divided by 512.
520|4 1 9146 1 1|PREP: Obtain the current values for the soft limit
520|4 1 9146 1 2|TEST: ulimit() returns integer part of the soft
520|4 1 9146 1 3| limit divided by 512
520|4 1 9146 1 4|ERROR: setrlimit failed, errno = 22(EINVAL - Invalid argument)
220|4 1 1 17:06:31|FAIL
410|4 2 1 17:06:31|IC End
80|4 0 17:06:31|TC EndReview 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 1421
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority