diff --git a/test/val/val_decoration_test.cpp b/test/val/val_decoration_test.cpp index 735f6a123b..1b68503d60 100644 --- a/test/val/val_decoration_test.cpp +++ b/test/val/val_decoration_test.cpp @@ -6469,7 +6469,7 @@ TEST_P(ValidateVulkanCombineDecorationResult, Decorate) { CompileSuccessfully(generator.Build(), SPV_ENV_VULKAN_1_0); ASSERT_EQ(test_result.validation_result, ValidateInstructions(SPV_ENV_VULKAN_1_0)); - if (test_result.error_str != "") { + if (!test_result.error_str.empty()) { EXPECT_THAT(getDiagnosticString(), HasSubstr(test_result.error_str)); } if (vuid) {