diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-16 13:38:09 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-12-19 16:17:46 +0100 |
commit | 827f05a53cb831bd54166ee812752ae3cce2b69b (patch) | |
tree | d6c68f39ce0e06384bf1a0e86c847ce1ff2ee9e4 /test/buildtool/build_engine/expression/expression.test.cpp | |
parent | 8fb0006e710e465c9778f0ad9c84e8ad74042960 (diff) | |
download | justbuild-827f05a53cb831bd54166ee812752ae3cce2b69b.tar.gz |
Fix struct member initialization
Diffstat (limited to 'test/buildtool/build_engine/expression/expression.test.cpp')
-rw-r--r-- | test/buildtool/build_engine/expression/expression.test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/buildtool/build_engine/expression/expression.test.cpp b/test/buildtool/build_engine/expression/expression.test.cpp index 7276f0a4..02de11fa 100644 --- a/test/buildtool/build_engine/expression/expression.test.cpp +++ b/test/buildtool/build_engine/expression/expression.test.cpp @@ -1874,7 +1874,11 @@ TEST_CASE("Expression hash computation", "[expression]") { CHECK_FALSE(result->ToHash().empty()); CHECK(result->ToHash() == Expression{result_t{}}.ToHash()); - CHECK_FALSE(result->ToHash() == Expression{result_t{boolean}}.ToHash()); + CHECK_FALSE( + result->ToHash() == + Expression{ + result_t{.artifact_stage = boolean, .provides = {}, .runfiles = {}}} + .ToHash()); CHECK_FALSE(list->ToHash().empty()); CHECK(list->ToHash() == Expression{list_t{}}.ToHash()); |