When reporting compilation errors, include warning strings.
This allows plugins to call mju_warning, and have the string propagate to users. PiperOrigin-RevId: 650621601 Change-Id: I608e7a3a1ad126ab8da2ff0634fa708458fb9ccc
This commit is contained in:
committed by
Copybara-Service
parent
450e7ff777
commit
c5f958bdff
@@ -648,8 +648,8 @@ TEST_F(PidTest, InvalidClamp) {
|
||||
mjModel* m = LoadModelFromString(kModelXml, error, sizeof(error));
|
||||
EXPECT_THAT(m, IsNull());
|
||||
|
||||
// TODO: b/303654852 - ensure that the compilation error includes "imax"
|
||||
EXPECT_THAT(std::string_view(error), HasSubstr("plugin"));
|
||||
EXPECT_THAT(std::string_view(error), HasSubstr("imax"));
|
||||
}
|
||||
|
||||
TEST_F(PidTest, InvalidSlew) {
|
||||
@@ -679,8 +679,8 @@ TEST_F(PidTest, InvalidSlew) {
|
||||
mjModel* m = LoadModelFromString(kModelXml, error, sizeof(error));
|
||||
ASSERT_THAT(m, IsNull());
|
||||
|
||||
// TODO: b/303654852 - ensure that the compilation error includes "slewmax"
|
||||
EXPECT_THAT(std::string_view(error), HasSubstr("plugin"));
|
||||
EXPECT_THAT(std::string_view(error), HasSubstr("slewmax"));
|
||||
}
|
||||
} // namespace
|
||||
} // namespace mujoco
|
||||
|
||||
Reference in New Issue
Block a user