]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Don’t read let Context read user configuration in unit tests
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 7 Aug 2021 11:12:56 +0000 (13:12 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 7 Aug 2021 11:25:24 +0000 (13:25 +0200)
commita2e6316eae064cb283beb481d2135f5188d0bd9a
treee3ae3ccaeaa52ed0ded8c1c9a2558376e07d3d43
parent4b8f8249452c8c367a1605e87959f59d5595e766
fix: Don’t read let Context read user configuration in unit tests

accd21e4 inadvertently made unit tests populate Context::config from the
environment and the user configuration. Fix this by moving code for
reading config, setting of logging, etc. into a separate method only to
be called by non-test code.

As noted by Michael Kruse in #815.
src/Context.cpp
src/Context.hpp
src/ccache.cpp