PR libstdc++/82777 fix path normalization for dot-dot
authorJonathan Wakely <jwakely@redhat.com>
Wed, 1 Nov 2017 17:09:14 +0000 (17:09 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 1 Nov 2017 17:09:14 +0000 (17:09 +0000)
commit50e248f0c8dd85a0e1778050d998f4010d87ed46
tree16c56de4fe2646dcaa19c9f79c802bcde54acda5
parent37a2c475252b26895732fefbbb0050c864ba698d
PR libstdc++/82777 fix path normalization for dot-dot

PR libstdc++/82777
* src/filesystem/std-path.cc (path::lexically_normal): Remove dot-dot
elements correctly.
* testsuite/27_io/filesystem/path/generation/normal.cc: Add testcase.
* testsuite/util/testsuite_fs.h (compare_paths): Improve exception
text.

From-SVN: r254317
libstdc++-v3/ChangeLog
libstdc++-v3/src/filesystem/std-path.cc
libstdc++-v3/testsuite/27_io/filesystem/path/generation/normal.cc
libstdc++-v3/testsuite/util/testsuite_fs.h