Fixed exception type for TBB path

release/4.3a0
dellaert 2019-06-11 13:40:29 -04:00
parent 4e19ba4488
commit 07b670423d
1 changed files with 7 additions and 1 deletions

View File

@ -10,9 +10,10 @@
* -------------------------------------------------------------------------- */
/**
* @file DoglegOptimizer.h
* @file testDoglegOptimizer.cpp
* @brief Unit tests for DoglegOptimizer
* @author Richard Roberts
* @author Frank dellaert
*/
#include <CppUnitLite/TestHarness.h>
@ -181,7 +182,12 @@ TEST(DoglegOptimizer, Constraint) {
// Try optimizing with infeasible initial estimate
DoglegOptimizer optimizer2(graph, infeasible, params);
#ifdef GTSAM_USE_TBB
CHECK_EXCEPTION(optimizer2.optimize(), std::exception);
#else
CHECK_EXCEPTION(optimizer2.optimize(), std::invalid_argument);
#endif
}
/* ************************************************************************* */