HomePhorge

Maint: Fix miscellaneous tests
0e4ae653c062Unpublished

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>

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8d5635598196: Maint: Don't test for extended signals on Windows
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU0e4ae653c062: Maint: Fix miscellaneous tests (authored by Josh Cooper <josh@puppetlabs.com>).Jul 19 2011, 11:08 PM