Skip to content

Commit e9ec53f

Browse files
committed
Fix test build failure on Linux
1 parent 49b45bd commit e9ec53f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/engine/engine_solver_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,14 @@ TEST_F(SolverTest, IslandsEquivalent) {
8989
model->opt.disableflags |= mjDSBL_ISLAND; // disable islands
9090
mj_forward(model, data_noisland);
9191

92-
auto time = std::to_string(data_noisland->time);
9392
for (int j = 0; j < nv; j++) {
9493
// increase tolerance for large elements
9594
mjtNum scale = 0.5 * max(static_cast<mjtNum>(2.0),
9695
std::abs(data_noisland->qacc[j]) +
9796
std::abs(data_island->qacc[j]));
9897
EXPECT_NEAR(data_noisland->qacc[j], data_island->qacc[j],
9998
MjTol(scale * rtol[i], 500 * scale * rtol[i]))
100-
<< "time: " << time << '\n'
99+
<< "time: " << data_noisland->time << '\n'
101100
<< "dof: " << j << '\n'
102101
<< "maxiter: " << maxiter[i] << '\n'
103102
<< "rtol: " << scale * rtol[i];

0 commit comments

Comments
 (0)