Commit efb6ac66 by Corentin Wallez

ProgramBinaryTest: fix an unreachable code warning

This warning was found by the GN build on Windows: the FAIL macro contains a return which caused code after the FAIL to be unreachable. BUG=angleproject:929 Change-Id: Id4bda39ea9f76d2b59c44391cb2de8a3bfb6947c Reviewed-on: https://chromium-review.googlesource.com/296950Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent d4bcfa2c
...@@ -377,9 +377,8 @@ TEST_P(ProgramBinariesAcrossPlatforms, CreateAndReloadBinary) ...@@ -377,9 +377,8 @@ TEST_P(ProgramBinariesAcrossPlatforms, CreateAndReloadBinary)
if (program == 0) if (program == 0)
{ {
FAIL() << "Failed to create program from source";
destroyEGLWindow(&eglWindow); destroyEGLWindow(&eglWindow);
return; FAIL() << "Failed to create program from source";
} }
// Draw using the program to ensure it works as expected // Draw using the program to ensure it works as expected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment