PR71337 fix filesystem::temp_directory_path error handling
authorJonathan Wakely <jwakely@redhat.com>
Mon, 24 Oct 2016 16:45:51 +0000 (17:45 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 24 Oct 2016 16:45:51 +0000 (17:45 +0100)
commit6daff2d946a2a656b5796e00d6ad65660315d565
tree2fdbe7c11d477c3df27aa4e6f0894e21230764f5
parentbb52a7e324258d55eef28d2b1c473b3973507da2
PR71337 fix filesystem::temp_directory_path error handling

PR libstdc++/71337
* src/filesystem/ops.cc (temp_directory_path): Pass error_code
argument to other filesystem operations.
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Add testcase for inaccessible directory.

From-SVN: r241487
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/ops.cc
libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc