On Nov 11, 2012, at 5:20 AM, Luis Lavena <
luisl...@gmail.com> wrote:
> Hello,
>
> I've started to look into Rack (and its tests) on Windows just to ensure things are running as much properly as possible.
Awesome, thanks!
> I found a few hardcoded values to temporary files (/tmp/rack_sendfile) that is blocking spec_sendfile.rb from executing.
Those sound easy, if you get an issue open I'll make sure to get it done before I roll the next release.
> Perhaps it will be good to use the system temporary directory instead?
Agreed.
> Beyond that, and without installing any particular handlers, rack tests results in:
>
> ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
> 583 tests, 1761 assertions, 4 failures, 2 errors
>
> ruby 2.0.0dev (2012-11-10 trunk 37612) [i386-mingw32]
> 583 tests, 1761 assertions, 5 failures, 2 errors
>
> ruby 2.0.0dev (2012-11-10 trunk 37612) [x64-mingw32]
> 583 tests, 1761 assertions, 5 failures, 2 errors
>
> See gist for full details:
>
>
https://gist.github.com/4054864
>
> Do you think tests are incorrectly assuming details of the platform (test is not prepared to run on Windows) or do you think the failures are possible rack issues with Windows?
The multipart tests involve loading binary fixtures from the repo. They will become corrupted if you use autocrlf in your git settings (I VERY VERY strongly recommend against such settings for exactly this reason). It's also possible we're missing some binary file modes in the read calls, or there are additional encoding concerns. I'll take a deeper look. Again an issue on Github will help me remember to do so.
> How would you like to proceed? I wanted to get the conversation going before invest more time on this.
This is excellent feedback, if you have more time to prepare some patches, that's awesome, but if you just want to create some issues with this information, that's great too.
Many thanks