gcc/libstdc++-v3/testsuite/27_io
Jonathan Wakely 3dbd4d94bf libstdc++: Use secure_getenv for filesystem::temp_directory_path() [PR65018]
This adds a configure check for the GNU extension secure_getenv and then
uses it for looking up TMPDIR and similar variables.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>

libstdc++-v3/ChangeLog:

	PR libstdc++/65018
	* configure.ac: Check for secure_getenv.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* src/filesystem/ops-common.h (get_temp_directory_from_env): New
	helper function to obtain path from the environment.
	* src/c++17/fs_ops.cc (fs::temp_directory_path): Use new helper.
	* src/filesystem/ops.cc (fs::temp_directory_path): Likewise.
	* testsuite/27_io/filesystem/operations/temp_directory_path.cc:
	Print messages if test cannot be run.
	* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
	Likewise. Fix incorrect condition. Use "TMP" to work with
	Windows as well as POSIX.
2021-07-30 18:12:39 +01:00
..
basic_filebuf libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_fstream libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_ifstream libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_ios Update copyright years. 2021-01-04 10:26:59 +01:00
basic_iostream Update copyright years. 2021-01-04 10:26:59 +01:00
basic_istream libstdc++: Implement LWG 415 for std::ws 2021-06-28 13:34:49 +01:00
basic_istringstream libstdc++: Only use dynamic_cast in tests when RTTI is enabled 2021-02-12 14:30:13 +00:00
basic_ofstream libstdc++: Remove redundant -std=gnu++17 options from filesystem tests 2021-05-10 16:22:53 +01:00
basic_ostream libstdc++: Implement LWG 581 for std:ostream::flush() 2021-06-25 18:47:39 +01:00
basic_ostringstream libstdc++: Only use dynamic_cast in tests when RTTI is enabled 2021-02-12 14:30:13 +00:00
basic_streambuf Update copyright years. 2021-01-04 10:26:59 +01:00
basic_stringbuf Update copyright years. 2021-01-04 10:26:59 +01:00
basic_stringstream libstdc++: Only use dynamic_cast in tests when RTTI is enabled 2021-02-12 14:30:13 +00:00
basic_syncbuf Update copyright years. 2021-01-04 10:26:59 +01:00
basic_syncstream Update copyright years. 2021-01-04 10:26:59 +01:00
filesystem libstdc++: Use secure_getenv for filesystem::temp_directory_path() [PR65018] 2021-07-30 18:12:39 +01:00
fpos Update copyright years. 2021-01-04 10:26:59 +01:00
headers libstdc++: Do not assume std::FILE is complete [PR 99270] 2021-02-25 15:35:58 +00:00
ios_base Update copyright years. 2021-01-04 10:26:59 +01:00
manipulators libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00
objects Update copyright years. 2021-01-04 10:26:59 +01:00
types libstdc++: Remove redundant -std=gnu++17 option from remaining tests 2021-05-10 16:22:54 +01:00
rvalue_streams-2.cc libstdc++: Implement LWG 1203 for rvalue iostreams 2021-04-30 14:33:19 +01:00
rvalue_streams.cc libstdc++: Implement LWG 1203 for rvalue iostreams 2021-04-30 14:33:19 +01:00