Message14345
Logged In: YES
user_id=33168
Hmmm, sounds like a lot of work. How about something like this:
expected_max = resource.RLIM_INFINITY
if expected_max != max:
# read the file resource limit
fsize_ulimit = os.popen('ulimit -f').read()
try:
# convert the file size to bytes (from 512 byte
blocks)
expected_max = int(fsize_ulimit.strip()) * 512
except ValueError:
raise TestSkipped, "unable to determine expected
resource value"
print expected_max == max
This works, but I'm pretty sure this is not portable. On
Linux blocks are 1k. This only works when the block size is
512 bytes. Shall we close this bug as a test environment
problem and won't fix? |
|
Date |
User |
Action |
Args |
2007-08-23 14:10:38 | admin | link | issue678264 messages |
2007-08-23 14:10:38 | admin | create | |
|