We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf3c01 commit 3e5e1daCopy full SHA for 3e5e1da
core/test/test_serial.cpp
@@ -182,6 +182,22 @@ TEST(ConnectConnect, FailSucc) {
182
EXPECT_FALSE(t.plan());
183
}
184
185
+TEST(Pruning, PropagatorFailure) {
186
+ resetIds();
187
+ Task t;
188
+ t.setRobotModel(getModel());
189
+ BackwardMockup* b;
190
+ t.add(Stage::pointer(b = new BackwardMockup()));
191
+ t.add(Stage::pointer(new GeneratorMockup({ 0 })));
192
+ t.add(Stage::pointer(new ForwardMockup({ inf })));
193
+
194
+ t.plan();
195
196
+ ASSERT_EQ(t.solutions().size(), 0);
197
+ // ForwardMockup fails, so the backward stage should never compute
198
+ EXPECT_EQ(b->calls_, 0);
199
+}
200
201
TEST(Pruning, PruningMultiForward) {
202
resetIds();
203
Task t;
0 commit comments