Sets environment variables for a test, and restores them after it.
More...
|
|
| Environment () |
| | Remembers the variables these tests change, and clears them.
|
|
| ~Environment () |
| | Puts them back.
|
|
|
QList< std::pair< const char *, QByteArray > > | m_saved |
| | Their values before, null for unset.
|
Sets environment variables for a test, and restores them after it.
◆ kNames
| std::array<const char *, 3> anonymous_namespace{test_trust.cpp}::Environment::kNames |
|
staticconstexprprivate |
Initial value:{ "SONDE_QML_LIBRARY", "SONDE_TRUST_FILE",
"XDG_CONFIG_HOME" }
The variables locate() and configDirectory() read.
The documentation for this class was generated from the following file:
- tests/core/test_trust.cpp