Fix duplicate layer test which used /etc
authorCharles Giessen <charles@lunarg.com>
Mon, 3 Jul 2023 20:18:10 +0000 (14:18 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 18 Jul 2023 21:49:15 +0000 (15:49 -0600)
commita230ae6341526be264110063737224b04a3f841b
tree08f047d250eba0eb182e230401fefbfeb88c48a1
parent1bb7cec71caf3cada50c554da8dae7c40771755f
Fix duplicate layer test which used /etc

The ImplicitLayers.DuplicateLayers test requires there to be two separate
files on the file system, located in different paths. To accomplish that, the
test writes a file to /etc and another to the default location. By default,
that is typically /usr/local/share. If the project is configured to set /etc
as that default location, only one file will be written.

The fix is to move the duplicate file from /etc to the default home directory,
since that is configured from inside the tests itself. This does change the
order the layers are found in, so the logic of the test had to be flipped.
tests/framework/test_environment.h
tests/loader_layer_tests.cpp
tests/loader_testing_main.cpp