Pash-Project / Pash

An Open Source reimplementation of Windows PowerShell, for Mono.
https://groups.google.com/group/pash-project
BSD 3-Clause "New" or "Revised" License
514 stars 54 forks source link

Split-Path failing on Mac #391

Open mrward opened 9 years ago

mrward commented 9 years ago

Running the tests for the master branch with Mono 3.12.0, 3.12.1 and 4.2 beta the ResolveParentForTwoFilesUsingLiteralPaths is failing.

    1) Test Failure : ReferenceTests.Commands.SplitPathTests.ResolveParentForTwoFilesUsingLiteralPaths
         Expected string length 114 but was 98. Strings differ at index 1.
      Expected: "/private/var/folders/ky/yjlcxlc52mb04njk1z7k9qfw0000gn/T\n/pri..."
      But was:  "/var/folders/ky/yjlcxlc52mb04njk1z7k9qfw0000gn/T\n/var/folders..."
      ------------^
    at ReferenceTests.Commands.SplitPathTests.ResolveParentForTwoFilesUsingLiteralPaths () <0x56348e0 + 0x001cb> in <filename unknown>:0

It looks like something has changed in master and made the workaround added to the test in this pull request obsolete. Running the tests with Mono 4.2 with this old pull request and they all pass.

Can anybody else confirm these are failing for the latest master branch on the Mac before I revert the fix I added to the test?