Test layer pre-instance functions
authorMark Young <marky@lunarg.com>
Fri, 11 Feb 2022 19:10:17 +0000 (12:10 -0700)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 15 Feb 2022 17:47:36 +0000 (10:47 -0700)
commit383cf8a6d3e54c42dac220692a8486e577612c61
tree6322331e2c18998164dda121c308f8c461c30ef2
parent5e96fd5450d0f9dab0f682bdf5108f3d4227e8da
Test layer pre-instance functions

Add tests to verify that the 3 pre-instance functions are properly
intercepted by the layer when everything is well-defined.

Also include two fixes:
 1) Disable environment variable value of 0 should be treated the same as not present
 2) The vkEnumerateInstanceVersion override path was broken, missing a NULL check
loader/loader.c
tests/framework/layer/export_definitions/test_layer_1.def
tests/framework/layer/export_definitions/test_layer_2.def
tests/framework/layer/test_layer.cpp
tests/framework/layer/test_layer.h
tests/framework/test_util.cpp
tests/framework/test_util.h
tests/loader_layer_tests.cpp