[patch] libstdc++/67173 Fix filesystem::canonical for Solaris 10.
Jonathan Wakely
jwakely@redhat.com
Thu Sep 17 15:36:00 GMT 2015
On 16/09/15 23:50 +0100, Jonathan Wakely wrote:
>On 16/09/15 19:58 +0100, Jonathan Wakely wrote:
>>commit ef25038796485298ff8f040bc79e0d9a371171fa
>>Author: Jonathan Wakely <jwakely@redhat.com>
>>Date: Wed Sep 16 18:07:32 2015 +0100
>>
>> Implement filesystem::canonical() without realpath
>> PR libstdc++/67173
>> * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check _XOPEN_VERSION
>> and PATH_MAX for _GLIBCXX_USE_REALPATH.
>> * config.h.in: Regenerate.
>> * configure: Regenerate.
>> * src/filesystem/ops.cc: (canonical) [!_GLIBCXX_USE_REALPATH]: Add
>> alternative implementation.
>> * testsuite/experimental/filesystem/operations/canonical.cc: New.
>> * testsuite/experimental/filesystem/operations/exists.cc: Add more
>> tests.
>> * testsuite/experimental/filesystem/operations/absolute.cc: Add test
>> variables.
>> * testsuite/experimental/filesystem/operations/copy.cc: Likewise.
>> * testsuite/experimental/filesystem/operations/current_path.cc:
>> Likewise.
>> * testsuite/experimental/filesystem/operations/file_size.cc: Likewise.
>> * testsuite/experimental/filesystem/operations/status.cc: Likewise.
>> * testsuite/experimental/filesystem/operations/temp_directory_path.cc:
>> Likewise.
>
>Committed to trunk.
>
I'm removing part of the new canonical.cc test as it fails
occasionally with:
terminate called after throwing an instance of 'std::experimental::filesystem::v1::__cxx11::filesystem_error'
what(): filesystem error: cannot canonicalize: No such file or directory [/dev/stdin]
FAIL: experimental/filesystem/operations/canonical.cc execution test
This is odd, as I check with exists() before calling canonical(), but
rather than try to understand what is happening I'm just going to
remove that part.
Committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150917/70e3f93d/attachment.bin>
More information about the Gcc-patches
mailing list