-
Notifications
You must be signed in to change notification settings - Fork 3k
Add Stream tests #5714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Stream tests #5714
Conversation
Guys @bulislaw @0xc0170 |
@geky will know more, from what I recall this is similar to what is defined in posix (http://man7.org/linux/man-pages/man2/lseek.2.html) ? |
3f5543b
to
520e048
Compare
Sorry @maciejbocianski, where were you seeing the "return 0" part? FileHandle::seek should be the same as the standard lseek function:
|
If My concern was rather about passing result of |
Ah I see, the difference between The retargeting layer for each toolchain expects an After the retargeting, it's up to the standard library to map the return values correctly to |
I can see why you'd logically expect Overriding (I'm currently fighting to get |
I have done tests with all compilers and everything looks fine. |
That's still subject to discussion - not sure there's any consensus behind it, so I wouldn't go as far as "likely" - more just "possible". Still, you could maybe test the C retargeting systems by implementing a Your last 3 tests would map straight to If it becomes a |
@bulislaw what do you think about rebranding this test to FileLike and do low-level test of FileLike(FileHandle) testing as @kjbracey-arm suggested, and for now postpone Stream testing? |
I would say lets not throw away the tests we just created, deprecated or not it'll be with us for a while. I would add separate tests as mentioned by Kevin. |
520e048
to
0657740
Compare
@maciejbocianski Is this obsolete? FileHandle tests were integreated, please let us know (close PR if it can be) |
Reopen if it's still relevant |
Description
Add Stream class tests
Not ready for review yet!!!
Status
IN DEVELOPMENT
Migrations
NO