tests/layers: Use correct assert macro to avoid compiler warnings.

Change-Id: I1e3d7d1b15a830f04efc731a196456825ccc6c64
diff --git a/tests/layer_validation_tests.cpp b/tests/layer_validation_tests.cpp
index 6771f68..85d3318 100644
--- a/tests/layer_validation_tests.cpp
+++ b/tests/layer_validation_tests.cpp
@@ -2277,7 +2277,7 @@
     dslci.bindingCount = 1;
     dslci.pBindings = layout_bindings;
     err = vkCreateDescriptorSetLayout(device(), &dslci, NULL, &descriptor_set_layout);
-    assert(!err);
+    ASSERT_VK_SUCCESS(err);
 
     VkPipelineLayout pipeline_layout;
     VkPipelineLayoutCreateInfo plci = {};
@@ -2286,7 +2286,7 @@
     plci.setLayoutCount = 1;
     plci.pSetLayouts = &descriptor_set_layout;
     err = vkCreatePipelineLayout(device(), &plci, NULL, &pipeline_layout);
-    assert(!err);
+    ASSERT_VK_SUCCESS(err);
 
     BeginCommandBuffer();
     vkCmdBindDescriptorSets(m_commandBuffer->GetBufferHandle(), VK_PIPELINE_BIND_POINT_GRAPHICS,