Add error reporting to model loading in engine tests, where missing
PiperOrigin-RevId: 795844607 Change-Id: I4163c53c05796c2e3036af28a98f58c15bb1c99c
This commit is contained in:
committed by
Copybara-Service
parent
bbb70d98a4
commit
5a24eb2d34
@@ -82,8 +82,9 @@ TEST(TestMjArrayList, TestMjArrayListSingleThreaded) {
|
||||
}
|
||||
|
||||
TEST(TestMjArrayList, ZeroInitialCapacity) {
|
||||
mjModel* m = LoadModelFromString("<mujoco/>", nullptr, 0);
|
||||
ASSERT_THAT(m, NotNull()) << "Failed to load model";
|
||||
char error[1024];
|
||||
mjModel* m = LoadModelFromString("<mujoco/>", error, sizeof(error));
|
||||
ASSERT_THAT(m, NotNull()) << "Failed to load model: " << error;
|
||||
mjData* d = mj_makeData(m);
|
||||
mj_markStack(d);
|
||||
mjArrayList* array_list =
|
||||
|
||||
Reference in New Issue
Block a user