summaryrefslogtreecommitdiff
path: root/test/buildtool/common/action_description.test.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-02-28 13:24:26 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-03-01 10:46:54 +0100
commit1ef03a1c7043d617885d319b0803d69907c3c9cc (patch)
treeacfcd33dab8e2355863356af88d14ac6e3578b2d /test/buildtool/common/action_description.test.cpp
parentfffee539ec37e9e68189e71994aa2c901d30c9fb (diff)
downloadjustbuild-1ef03a1c7043d617885d319b0803d69907c3c9cc.tar.gz
Pass actions and trees in analysis result as shared pointer
... to avoid unnecessary copying and moving of larger objects.
Diffstat (limited to 'test/buildtool/common/action_description.test.cpp')
-rw-r--r--test/buildtool/common/action_description.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/buildtool/common/action_description.test.cpp b/test/buildtool/common/action_description.test.cpp
index ac7367e1..ee5c00da 100644
--- a/test/buildtool/common/action_description.test.cpp
+++ b/test/buildtool/common/action_description.test.cpp
@@ -20,7 +20,7 @@ TEST_CASE("From JSON", "[action_description]") {
SECTION("Parse full action") {
auto description = ActionDescription::FromJson("id", json);
REQUIRE(description);
- CHECK(description->ToJson() == json);
+ CHECK((*description)->ToJson() == json);
}
SECTION("Parse action without optional input") {