Skip to content

Commit 2bd6326

Browse files
committed
fix warnings
1 parent e2b26d6 commit 2bd6326

14 files changed

+18
-18
lines changed

tests/gtest_factory.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static const char* xml_text_subtree = R"(
7777

7878
static const char* xml_text_subtree_part1 = R"(
7979
80-
<root>
80+
<root BTCPP_format="4">
8181
<BehaviorTree ID="MainTree">
8282
<Fallback name="root_selector">
8383
<SubTree ID="DoorClosedSubtree" />
@@ -88,7 +88,7 @@ static const char* xml_text_subtree_part1 = R"(
8888

8989
static const char* xml_text_subtree_part2 = R"(
9090
91-
<root>
91+
<root BTCPP_format="4">
9292
<BehaviorTree ID="DoorClosedSubtree">
9393
<Sequence name="door_sequence">
9494
<Decorator ID="Inverter">
@@ -168,7 +168,7 @@ TEST(BehaviorTreeFactory, Subtree)
168168
TEST(BehaviorTreeFactory, Issue7)
169169
{
170170
const std::string xml_text_issue = R"(
171-
<root>
171+
<root BTCPP_format="4">
172172
<BehaviorTree ID="ReceiveGuest">
173173
</BehaviorTree>
174174
</root> )";
@@ -183,7 +183,7 @@ TEST(BehaviorTreeFactory, Issue7)
183183

184184
static const char* xml_ports_subtree = R"(
185185
186-
<root BTCPP_format="4" format="4" main_tree_to_execute="MainTree">
186+
<root BTCPP_format="4" main_tree_to_execute="MainTree">
187187
188188
<BehaviorTree ID="TalkToMe">
189189
<Sequence>

tests/gtest_logger_zmq.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TEST(LoggerZMQ, ZMQLoggerDeletesCleanlyAfterTickingTree)
77
{
88
// GIVEN we create a behavior tree through the BT factory and attach a ZMQ publisher to it
99
static constexpr auto XML = R"(
10-
<root>
10+
<root BTCPP_format="4">
1111
<BehaviorTree>
1212
<SetBlackboard output_key="arg1" value="1" />
1313
</BehaviorTree>
@@ -30,7 +30,7 @@ TEST(LoggerZMQ, ZMQLoggerDeletesCleanlyAfterNotTickingTree)
3030
{
3131
// GIVEN we create a behavior tree through the BT factory and attach a ZMQ publisher to it
3232
static constexpr auto XML = R"(
33-
<root>
33+
<root BTCPP_format="4">
3434
<BehaviorTree>
3535
<SetBlackboard output_key="arg1" value="1" />
3636
</BehaviorTree>

tests/gtest_wakeup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TEST(WakeUp, BasicTest)
2828
{
2929
static const char* xml_text = R"(
3030
31-
<root>
31+
<root BTCPP_format="4">
3232
<BehaviorTree ID="MainTree">
3333
<FastAction/>
3434
</BehaviorTree>

tests/navigation_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using namespace BT;
77
// clang-format off
88
static const char* xml_text = R"(
99
10-
<root main_tree_to_execute="BehaviorTree">
10+
<root BTCPP_format="4" main_tree_to_execute="BehaviorTree">
1111
<BehaviorTree ID="BehaviorTree">
1212
<Fallback name="root">
1313

tests/trees/child/child/child_child_no_include.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<root main_tree_to_execute = "ChildChildNoInclude">
1+
<root BTCPP_format="4" main_tree_to_execute = "ChildChildNoInclude">
22
<BehaviorTree ID="ChildChildNoInclude">
33
<AlwaysSuccess />
44
</BehaviorTree>

tests/trees/child/child_include_child.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<root main_tree_to_execute = "ChildIncludeChild">
1+
<root BTCPP_format="4" main_tree_to_execute = "ChildIncludeChild">
22
<include path="child/child_child_no_include.xml" />
33

44
<BehaviorTree ID="ChildIncludeChild">

tests/trees/child/child_include_parent.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<root main_tree_to_execute = "ChildIncludeParent">
1+
<root BTCPP_format="4" main_tree_to_execute = "ChildIncludeParent">
22
<include path="../parent_no_include.xml" />
33

44
<BehaviorTree ID="ChildIncludeParent">

tests/trees/child/child_include_sibling.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<root main_tree_to_execute = "ChildIncludeSibling">
1+
<root BTCPP_format="4" main_tree_to_execute = "ChildIncludeSibling">
22
<include path="child_no_include.xml" />
33

44
<BehaviorTree ID="ChildIncludeSibling">

tests/trees/child/child_no_include.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<root main_tree_to_execute = "ChildNoInclude">
1+
<root BTCPP_format="4" main_tree_to_execute = "ChildNoInclude">
22
<BehaviorTree ID="ChildNoInclude">
33
<AlwaysSuccess />
44
</BehaviorTree>

tests/trees/parent_include_child.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<root main_tree_to_execute = "ParentIncludeChild">
1+
<root BTCPP_format="4" main_tree_to_execute = "ParentIncludeChild">
22
<include path="child/child_no_include.xml" />
33

44
<BehaviorTree ID="ParentIncludeChild">

0 commit comments

Comments
 (0)