Fix for reoder program unit test when built without suitesparse

This commit fixes failure of reorder_program_test when Ceres is built without
any suitesparse.

Change-Id: Ia23ae8dfd20c482cb9cd1301f17edf9a34df3235
This commit is contained in:
Sergey Sharybin
2015-08-22 11:18:45 +02:00
parent 4bf3868bec
commit ad2a997777
+2 -1
View File
@@ -169,7 +169,7 @@ TEST(_, ApplyOrderingNormal) {
EXPECT_EQ(parameter_blocks[2]->user_state(), &y);
}
#ifndef CERES_NO_SUITESPARSE
class ReorderProgramForSparseNormalCholeskyUsingSuiteSparseTest : public ::testing::Test {
protected:
void SetUp() {
@@ -243,6 +243,7 @@ TEST_F(ReorderProgramForSparseNormalCholeskyUsingSuiteSparseTest,
ComputeAndValidateOrdering(linear_solver_ordering);
}
#endif // CERES_NO_SUITESPARSE
} // namespace internal
} // namespace ceres