projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a3f65
)
Update set_spec_const_default_value_test.cpp
author
Mike Lothain
<mike@fireburn.co.uk>
Mon, 8 May 2017 12:56:45 +0000
(13:56 +0100)
committer
Lei Zhang
<antiagainst@google.com>
Mon, 8 May 2017 14:41:48 +0000
(10:41 -0400)
Work around warning of dangling else
test/opt/set_spec_const_default_value_test.cpp
patch
|
blob
|
history
diff --git
a/test/opt/set_spec_const_default_value_test.cpp
b/test/opt/set_spec_const_default_value_test.cpp
index
599ba04
..
e4edbc3
100644
(file)
--- a/
test/opt/set_spec_const_default_value_test.cpp
+++ b/
test/opt/set_spec_const_default_value_test.cpp
@@
-42,7
+42,7
@@
TEST_P(DefaultValuesStringParsingTest, TestCase) {
tc.default_values_str);
if (tc.expect_success) {
EXPECT_NE(nullptr, actual_map);
- if (actual_map)
EXPECT_THAT(*actual_map, Eq(tc.expected_map));
+ if (actual_map)
{ EXPECT_THAT(*actual_map, Eq(tc.expected_map)); }
} else {
EXPECT_EQ(nullptr, actual_map);
}