optimal & fix file cmake
This commit is contained in:
@@ -147,7 +147,8 @@ TEST(PlannerRunner, ConfigureFailsWhenTheInitialPlannerCannotBeLoaded)
|
||||
|
||||
EXPECT_FALSE(runner.configure(nh, dummyCostmap(), "TestPlannerMissingLibrary", error));
|
||||
EXPECT_FALSE(error.empty());
|
||||
EXPECT_FALSE(runner.configured()) << "configure thất bại nhưng vẫn tự coi là đã cấu hình";
|
||||
EXPECT_FALSE(runner.configured()) << "configure failed but the object still reports itself as "
|
||||
"configured";
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
@@ -175,7 +176,8 @@ TEST(PlannerRunner, SwapsBetweenPlannersAndReusesLoadedLibraries)
|
||||
|
||||
ASSERT_TRUE(fixture.runner_.swapPlanner("TestPlannerOk"));
|
||||
EXPECT_EQ(fixture.runner_.activePlanner(), "TestPlannerOk");
|
||||
EXPECT_EQ(fixture.runner_.loadedCount(), 2U) << "quay lại planner cũ mà vẫn nạp lại thư viện";
|
||||
EXPECT_EQ(fixture.runner_.loadedCount(), 2U) << "switched back to the previous planner yet "
|
||||
"reloaded the library";
|
||||
}
|
||||
|
||||
TEST(PlannerRunner, FailedSwapKeepsThePreviousPlannerActive)
|
||||
@@ -210,7 +212,7 @@ TEST(PlannerRunner, PlannerThatFailedToInitializeIsNotCached)
|
||||
|
||||
EXPECT_FALSE(fixture.runner_.swapPlanner("TestPlannerInitFails"));
|
||||
EXPECT_EQ(fixture.runner_.loadedCount(), 1U)
|
||||
<< "instance hỏng bị cache lại — mọi lần thử sau sẽ nhận lại đúng cái hỏng đó";
|
||||
<< "a broken instance was cached — every later attempt would get that same broken one back";
|
||||
}
|
||||
|
||||
TEST(PlannerRunner, RefusesEmptyPlannerName)
|
||||
@@ -349,7 +351,8 @@ TEST(PlannerRunner, SecondStartWhileOneIsInFlightIsRefused)
|
||||
move_base2::PlanResult result;
|
||||
ASSERT_TRUE(fixture.runner_.pollPlan(result));
|
||||
EXPECT_TRUE(result.tag == 1U || (!refused && result.tag == 2U));
|
||||
EXPECT_FALSE(fixture.runner_.pollPlan(result)) << "còn kết quả thứ hai trong hộp thư";
|
||||
EXPECT_FALSE(fixture.runner_.pollPlan(result)) << "a second result is still sitting in the "
|
||||
"mailbox";
|
||||
}
|
||||
|
||||
TEST(PlannerRunner, CancelledPlanProducesNoResult)
|
||||
@@ -367,7 +370,8 @@ TEST(PlannerRunner, CancelledPlanProducesNoResult)
|
||||
|
||||
move_base2::PlanResult result;
|
||||
EXPECT_FALSE(fixture.runner_.pollPlan(result))
|
||||
<< "lượt đã huỷ vẫn trả kết quả — bên gọi sẽ bám theo plan tới goal không còn ai yêu cầu";
|
||||
<< "a cancelled attempt still returned a result — the caller would follow a plan to a goal "
|
||||
"nobody asks for anymore";
|
||||
}
|
||||
|
||||
TEST(PlannerRunner, ResultCarriesBackTheTagItWasStartedWith)
|
||||
|
||||
Reference in New Issue
Block a user