On 5/17/2010 3:26 PM, Markus Roberts wrote:
1. Mechanical changes and differences supported by ruby.  For example,
literal "/" characters used to join file path components that need to be
replaced with the File::Separator and similar.

Actually, the MRI port helps here massively by accepting both forward and backward slashes. The actual trouble is handling drive letters and UNCs which are widely unacceptable to many regexps throughout the code.

2. Behavioral changes, such as threading / forking, which may function
differently or not have analogs under MS Windows.  In some cases this
will require finessing (e.g. the system for shelling out & capturing the
output)

Replacing Process.fork was quite easy, using the sys-process library from Daniel Berger's sys-utils suite

  > http://rubyforge.org/projects/sysutils/

Other things like the eventloop can be worked around for now, by simply disabling them.

I'm currently working down a list of ~600 failing specs on windows. Many of those are probably traceable to similar root causes, for example quite a bunch of

> rm: cannot unlink `C:/Users/david/AppData/Local
> /Temp/host_integration_testing20100517-5688-lnaffp-0': Permission
> denied

and

> Not deleting tmpfile C:/Users/david/AppData/Local
> /Temp/file120100517-5688-usbjvi-0 outside of /tmp or /var/folders


Best Regards, David
--
dasz.at OG              Tel: +43 (0)664 2602670     Web: http://dasz.at
Klosterneuburg                                         UID: ATU64260999

       FB-Nr.: FN 309285 g          FB-Gericht: LG Korneuburg

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to