r257260 - [vfs] Normalize working directory if requested.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 10 03:04:05 PST 2016


Fixed in r257286, sorry for the breakage.

On Sun, Jan 10, 2016 at 7:59 AM, Ismail Donmez <ismail at i10z.com> wrote:
> Hi,
>
>> +  NormalizedFS.setCurrentWorkingDirectory("/b/c");
>> +  NormalizedFS.setCurrentWorkingDirectory(".");
>> +  ASSERT_EQ("/b/c", NormalizedFS.getCurrentWorkingDirectory().get());
>> +  NormalizedFS.setCurrentWorkingDirectory("..");
>> +  ASSERT_EQ("/b", NormalizedFS.getCurrentWorkingDirectory().get());
>>  }
>
> This test fails on Windows (MSVC 2015 x64):
>
> ******************** TEST 'Clang-Unit ::
> Basic/BasicTests.exe/InMemoryFileSystemTest.WorkingDirectory' FAILED
> ****************
> ****
> Note: Google Test filter = InMemoryFileSystemTest.WorkingDirectory
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from InMemoryFileSystemTest
> [ RUN      ] InMemoryFileSystemTest.WorkingDirectory
> ..\tools\clang\unittests\Basic\VirtualFileSystemTest.cpp(663): error:
> Value of: NormalizedFS.getCurrentWorkingDirectory().get(
> )
>   Actual: "/b\\c"
> Expected: "/b/c"
> [  FAILED  ] InMemoryFileSystemTest.WorkingDirectory (0 ms)
> [----------] 1 test from InMemoryFileSystemTest (0 ms total)
>
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (0 ms total)
> [  PASSED  ] 0 tests.
> [  FAILED  ] 1 test, listed below:
> [  FAILED  ] InMemoryFileSystemTest.WorkingDirectory
>
>  1 FAILED TEST
>
> ********************


More information about the cfe-commits mailing list