Thanks. Please don't use rand() in testcases, though. Would a constant 'a' suffice in this case?
Which app did you find this in, btw?
On Tue, Feb 3, 2009 at 1:55 PM, Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de wrote:
"Dan" == Dan Kegel dank@kegel.com writes:
Dan> Thanks. Please don't use rand() in testcases, though. Would a Dan> constant 'a' suffice in this case?
Dan> Which app did you find this in, btw?
It the application that can be downloaded for free after registration on http://forms.analog.com/form_pages/rfcomms/adisimpll.asp?ref=ASC-PR-067 running the tutorial
Appended a changed test case, writing one single line. It starts to fail when the file, including CR and LF gets bigger then 512 bytes. This hits probably /* in text mode, strip \r if followed by \n. * BUG: should save state across calls somehow, so CR LF that * straddles buffer boundary gets recognized properly? */
It is not clear, if this is the real cause for the simpll.exe failure.
Bye
Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de wrote:
So it turns out all 'a' obscures the problem. Here's a better test case. We're seeking to one byte too far in the file, and in this test, the last 510 bytes returned are off by one.