HomePhorge

Maint: Fix miscellaneous tests
5d3a40fda87bUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Maint: Fix miscellaneous tests

Several tests were broken due to pecularities of Windows
and Ruby on Windows:

  • Ruby on windows does not differentiate between group and other file permissions.
  • All open file handles must be closed before the file can be deleted
  • Sometimes the current working directory (Dir.getwd) is reported as C:/foo and other times as C:\\foo, which confuses the spec tests.
  • Ruby's sprintf formats floating point values differently on Windows vs Unix. The Windows exponent has an extra leading zero.
  • Needed to stub execution of security command with the SMF service provider.

Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
(cherry picked from commit 0e4ae653c0628cb0df9ccace98bca4bc7478fb7c)

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
Jacob Helwig <jacob@puppetlabs.com>Committed on Aug 19 2011, 10:48 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUce0c258ba24a: Maint: Don't test for extended signals on Windows
Branches
Unknown
Tags
Unknown

Event Timeline

Jacob Helwig <jacob@puppetlabs.com> committed rPU5d3a40fda87b: Maint: Fix miscellaneous tests (authored by Josh Cooper <josh@puppetlabs.com>).Aug 19 2011, 10:48 PM