gcc/libstdc++-v3/testsuite/27_io
Ken Matsui df147e2ee7
libstdc++: Fix error handling in filesystem::equivalent [PR113250]
This patch made std::filesystem::equivalent correctly throw an exception
when either path does not exist as per [fs.op.equivalent]/4.

	PR libstdc++/113250

libstdc++-v3/ChangeLog:

	* src/c++17/fs_ops.cc (fs::equivalent): Use || instead of &&.
	* src/filesystem/ops.cc (fs::equivalent): Likewise.
	* testsuite/27_io/filesystem/operations/equivalent.cc: Handle
	error codes.
	* testsuite/experimental/filesystem/operations/equivalent.cc:
	Likewise.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
2024-01-11 03:36:14 -08:00
..
basic_filebuf Update copyright years. 2024-01-03 12:19:35 +01:00
basic_fstream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_ifstream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_ios Update copyright years. 2024-01-03 12:19:35 +01:00
basic_iostream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_istream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_istringstream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_ofstream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_ostream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_ostringstream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_streambuf Update copyright years. 2024-01-03 12:19:35 +01:00
basic_stringbuf Update copyright years. 2024-01-03 12:19:35 +01:00
basic_stringstream Update copyright years. 2024-01-03 12:19:35 +01:00
basic_syncbuf Update copyright years. 2024-01-03 12:19:35 +01:00
basic_syncstream Update copyright years. 2024-01-03 12:19:35 +01:00
filesystem libstdc++: Fix error handling in filesystem::equivalent [PR113250] 2024-01-11 03:36:14 -08:00
fpos Update copyright years. 2024-01-03 12:19:35 +01:00
headers Update copyright years. 2024-01-03 12:19:35 +01:00
ios_base Update copyright years. 2024-01-03 12:19:35 +01:00
manipulators Update copyright years. 2024-01-03 12:19:35 +01:00
objects Update copyright years. 2024-01-03 12:19:35 +01:00
print libstdc++: Fix std::print test case for Windows 2023-12-15 13:20:49 +00:00
spanstream libstdc++: Test for feature test macros more accurately 2023-11-16 08:06:59 +00:00
types Update copyright years. 2024-01-03 12:19:35 +01:00
rvalue_streams-2.cc Update copyright years. 2024-01-03 12:19:35 +01:00
rvalue_streams.cc Update copyright years. 2024-01-03 12:19:35 +01:00