testsuite: Allow setting gpp_std_list in configuration files
authorJonathan Wakely <jwakely@redhat.com>
Tue, 29 Mar 2022 10:17:01 +0000 (11:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 29 Mar 2022 19:30:44 +0000 (20:30 +0100)
commiteb59ddf57fbc4bf1d2deaf0665ede4aa37181069
tree359d38104ecf7eeea7af8b6a96ebe414eec75de2
parent95768878c718f80e3d562130e2118831bc7fdbf6
testsuite: Allow setting gpp_std_list in configuration files

This allows the gpp_std_list variable to be set in ~/.dejagnurc instead
of using the GXX_TESTSUITE_STDS environment variable.  This is
consistent with how other defaults such as tool_timeout can be set.

The environment variable can still be used to override the default.

gcc/testsuite/ChangeLog:

* lib/g++-dg.exp: Update comments.
* lib/g++.exp (gpp_std_list): Check for an existing value before
setting it to an empty list.
gcc/testsuite/lib/g++-dg.exp
gcc/testsuite/lib/g++.exp