Euphoria Ticket #843: io tests failing

The io tests failing involving seek in t_io.e, involve calling seek on standard in, out and err. There is nothing in the EUPHORIA documentation that says that calls to seek on file handles that might be connected to a terminal should fail.

The fact that there are ifdef conditions around these tests indicate that things are not working consistently across platforms in this regard. In the Linux man page of fseek (32-bit) we are told that an error is returned if the file is 'unseekable'. Rather than using that we use a 64-bit version of fseek either lseek64 or llseek. In Linux neither man page specify what to do with stdin,out or err.

So, lets discuss what to do with this.

Details

Type: Bug Report Severity: Minor Category: Unit Tests
Assigned To: unknown Status: Invalid Reported Release:
Fixed in SVN #: View VCS: none Milestone: 4.0.6

1. Comment by mattlewis Feb 01, 2013

I'm not aware that there was ever a problem with 4.0. What failing tests are you referring to? There were some that were failing due to a eutest bug. Is there something else going on?

I just built a fresh 4.0 and 64-bit 4.1 interpreter, and both ran t_io.e just fine.

2. Comment by SDPringle Feb 01, 2013

I did forget to say that it was Linux 32 bit tested on Wednesday. It's valid until my tests show all green.

3. Comment by mattlewis Feb 01, 2013

Are you running with an updated version of eutest that doesn't have the close(0) bug?

I cannot reproduce this with current code, which is why I'm still tagging this as "Is Valid?"

4. Comment by SDPringle Feb 01, 2013

Um.. what 'close(0)' bug?

5. Comment by mattlewis Feb 01, 2013

The close(0) bug fixed here. There was an email thread about it.

6. Comment by SDPringle Feb 01, 2013

I am unable to reproduce this problem now either. So, what was the ticket number of this eutest problem?

7. Comment by mattlewis Feb 01, 2013

I don't think a ticket was ever entered.

Search



Quick Links

User menu

Not signed in.

Misc Menu