Test when apiVersion is 0
authorAransentin <jens.goldberg@gmail.com>
Wed, 18 May 2016 14:55:14 +0000 (14:55 +0000)
committerAransentin <jens.goldberg@gmail.com>
Wed, 18 May 2016 14:55:14 +0000 (14:55 +0000)
external/vulkancts/modules/vulkan/api/vktApiDeviceInitializationTests.cpp

index e1b9bf6..77de38a 100644 (file)
@@ -150,6 +150,23 @@ tcu::TestStatus createInstanceTest (Context& context)
 
                appInfos.push_back(appInfo);
        }
+
+       // test when apiVersion is 0
+       {
+               const VkApplicationInfo appInfo =
+               {
+                       VK_STRUCTURE_TYPE_APPLICATION_INFO,             // VkStructureType                              sType;
+                       DE_NULL,                                                                // const void*                                  pNext;
+                       "appName",                                                              // const char*                                  pAppName;
+                       0u,                                                                             // deUint32                                             appVersion;
+                       "engineName",                                                   // const char*                                  pEngineName;
+                       0u,                                                                             // deUint32                                             engineVersion;
+                       0u,                                                                             // deUint32                                             apiVersion;
+               };
+
+               appInfos.push_back(appInfo);
+       }
+
        // run the tests!
        for (size_t appInfoNdx = 0; appInfoNdx < appInfos.size(); ++appInfoNdx)
        {