tests: Add missing parms to InitFramework call
authorMark Lobodzinski <mark@lunarg.com>
Wed, 14 Jun 2017 18:12:26 +0000 (12:12 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 16 Jun 2017 16:15:17 +0000 (10:15 -0600)
If using InitFramework() instead of Init(), the debug_function and
error_monitor arguments are required for full functionality.

Change-Id: I50a5fd81ee9412ad857d1334bf19664d27d1d309

tests/layer_validation_tests.cpp

index a99736f..91913ac 100644 (file)
@@ -24255,7 +24255,7 @@ TEST_F(VkPositiveLayerTest, CreateComputePipelineCombinedImageSamplerConsumedAsB
 TEST_F(VkPositiveLayerTest, Maintenance1Tests) {
     TEST_DESCRIPTION("Validate various special cases for the Maintenance1_KHR extension");
 
-    ASSERT_NO_FATAL_FAILURE(InitFramework());  // gpu() is not valid prior to InitFramework()
+    ASSERT_NO_FATAL_FAILURE(InitFramework(myDbgFunc, m_errorMonitor));
     if (DeviceExtensionSupported(gpu(), VK_KHR_MAINTENANCE1_EXTENSION_NAME)) {
         m_device_extension_names.push_back(VK_KHR_MAINTENANCE1_EXTENSION_NAME);
     } else {