turn off backwards compatibility test with quaternions or TBB since serialization structure is different

release/4.3a0
Gerry Chen 2022-07-20 00:15:58 -04:00
parent 83276853b5
commit fa196aa638
No known key found for this signature in database
GPG Key ID: E9845092D3A57286
1 changed files with 6 additions and 1 deletions

View File

@ -109,10 +109,13 @@ TEST (Serialization, TemplatedValues) {
/**
* Test deserializing from a known serialization generated by code from commit
* 3ba65669113f41d0e56a03b4b314047776bab5c4 (>4.2a4)
* 0af17f438f62f4788f3a572ecd36d06d224fd1e1 (>4.2a7)
* We only test that deserialization matches since
* (1) that's the main backward compatibility requirement and
* (2) serialized string depends on boost version
* Also note: we don't run this test when quaternions or TBB are enabled since
* serialization structures are different and the serialized strings/xml are
* hard-coded in this test.
*/
TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
PriorFactor<Pose3> factor(
@ -124,6 +127,7 @@ TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
roundtrip(factor, factor_deserialized_str_2);
EXPECT(assert_equal(factor, factor_deserialized_str_2));
#if !defined(GTSAM_USE_QUATERNIONS) && !defined(GTSAM_USE_TBB)
// Deserialize string
std::string serialized_str =
"22 serialization::archive 15 1 0\n"
@ -153,6 +157,7 @@ TEST(Serialization, NoiseModelFactor1_backwards_compatibility) {
"/../../gtsam/nonlinear/tests/priorFactor.xml",
factor_deserialized_xml);
EXPECT(assert_equal(factor, factor_deserialized_xml));
#endif
}
TEST(Serialization, ISAM2) {