Hi Steffen,

Thank you for the test. We will make it conditional. The test will not run when 
there is not enough memory.

Elena
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal  The HDF Group  http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




On Dec 21, 2015, at 4:26 AM, Steffen Kieß 
<[email protected]<mailto:[email protected]>>
 wrote:

From: Hdf-forum [mailto:[email protected]] On Behalf Of 
Steffen Kieß
Sent: Monday, December 21, 2015 5:27 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [Hdf-forum] Bug in handling short reads for external files

Hello,

I've attached a simple test case, which fails on my system (Linux 3.13)
with:

Value: 0
Error: Value should be 42

strace shows:
open("external-file", O_RDONLY)         = 5
lseek(5, 0, SEEK_SET)                   = 0
read(5,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
2165309440) = 2147479552
close(5)                                = 0

However, the test will need >2GB RAM, so I'm not sure whether it is a good idea 
to add it to the test suite.

The test case also verifies that bytes after EOF are read as '0'.


Best regards,
Steffen Kieß
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to