current_path.cc: Use canonical paths for comparisons.

* testsuite/experimental/filesystem/operations/current_path.cc: Use
	canonical paths for comparisons.

From-SVN: r226402
This commit is contained in:
Jonathan Wakely 2015-07-30 13:41:33 +01:00 committed by Jonathan Wakely
parent b21ce9ce3b
commit 155bfacbbe
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-07-30 Jonathan Wakely <jwakely@redhat.com>
* testsuite/experimental/filesystem/operations/current_path.cc: Use
canonical paths for comparisons.
2015-07-30 Tim Shen <timshen@google.com>
* include/bits/regex_automaton.h (_State_base, _State<>):

View File

@ -42,11 +42,11 @@ test02()
auto oldwd = fs::current_path();
auto tmpdir = fs::temp_directory_path();
current_path(tmpdir);
VERIFY( fs::current_path() == tmpdir );
VERIFY( canonical(fs::current_path()) == canonical(tmpdir) );
std::error_code ec;
current_path(oldwd, ec);
VERIFY( fs::current_path() == oldwd );
VERIFY( fs::current_path(ec) == oldwd );
VERIFY( canonical(fs::current_path()) == canonical(oldwd) );
VERIFY( canonical(fs::current_path(ec)) == canonical(oldwd) );
}
int