[Mono-dev] MonoTests.System.IO.StdioFileStreamTest.Write unit test case fails in Solaris 7 sparc

rajesh.raji at wipro.com rajesh.raji at wipro.com
Mon Jun 2 10:21:10 EDT 2008

Hello guys,


Please assist us on the below error message:


Error Message


While trying to run the test suite, I was getting the following error
under mcs/class/Mono.Posix directory:


expected:<1>  but was:<0>

  at MonoTests.System.IO.StdioFileStreamTest.Write () [0x000cc] in

  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke (object,object[])

  at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x0003f] in



This test suite is working fine for Mono 1.9 on Solaris 10 (x86
architecture) as well as in Linux platforms.




Solaris 7, Sparc 32 bit



On analyzing the cause for the assertion in
"Test/Mono.Unix/StdioFileStreamTest.cs" under Mono.Posix directory, we
observed the following:


- Three write operations (stream.Write) was done to the file, after
which a fread command was issued without doing a fseek. 

stream.Write (outbytes, 0, 7);

stream.Write (outbytes, 7, 7);

stream.Write (outbytes, 14, 1);

stream.Read (bytes, 0, 15);

- But the test suite passed, when I tweaked a fseek (stream.Seek)
between the write and read operations.

- I suspect this should be the problem as the 'bytes' array is filled
with zero after the read operation which is not the expected case.


Any idea/suggestions on this issue are appreciated!


Thanks a lot in advance for the help rendered.






Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080602/e7effc7d/attachment-0001.html 

More information about the Mono-devel-list mailing list