Skip to content

Commit

Permalink
Removed erroneous text
Browse files Browse the repository at this point in the history
  • Loading branch information
JaiXJM-BB committed Jan 10, 2025
1 parent 77c5c57 commit 20d72d0
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion gtsam/base/tests/testMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ TEST(Matrix, constructor_data )

EQUALITY(A,B);
}
//#ifndef __QNX__

/* ************************************************************************* */
TEST(Matrix, Matrix_ )
{
Expand Down
1 change: 1 addition & 0 deletions gtsam/nonlinear/tests/testSerializationNonlinear.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ using namespace std;
using namespace gtsam;
using namespace gtsam::serializationTestHelpers;


/* ************************************************************************* */
// Create GUIDs for Noisemodels
BOOST_CLASS_EXPORT_GUID(gtsam::noiseModel::Diagonal, "gtsam_noiseModel_Diagonal")
Expand Down
2 changes: 0 additions & 2 deletions gtsam/slam/tests/testEssentialMatrixFactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ TEST(EssentialMatrixFactor, testData) {
EXPECT(assert_equal(Point2(0, 0), pA(0), 1e-8));
EXPECT(assert_equal(Point2(0, 0.1), pB(0), 1e-8));
EXPECT(assert_equal(Point2(0, -1), pA(4), 1e-8));
#ifndef __QNX__ //Floating Point Error
EXPECT(assert_equal(Point2(-1, 0.2), pB(4), 1e-8));

// Check homogeneous version
EXPECT(assert_equal(Vector3(-1, 0.2, 1), vB(4), 1e-8));
#endif

// Check epipolar constraint
for (size_t i = 0; i < 5; i++)
Expand Down
4 changes: 0 additions & 4 deletions gtsam/slam/tests/testSerializationDataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ TEST(dataSet, sfmDataSerialization) {
SfmData mydata = SfmData::FromBalFile(filename);

// round-trip equality check on serialization and subsequent deserialization
#ifndef __QNX__ //Floating Point Issue
EXPECT(equalsObj(mydata));
EXPECT(equalsXML(mydata));
#endif
EXPECT(equalsBinary(mydata));
}

Expand All @@ -49,10 +47,8 @@ TEST(dataSet, sfmTrackSerialization) {
SfmTrack track = mydata.track(0);

// round-trip equality check on serialization and subsequent deserialization
#ifndef __QNX__ //Floating Point Issue
EXPECT(equalsObj(track));
EXPECT(equalsXML(track));
#endif
EXPECT(equalsBinary(track));
}

Expand Down
4 changes: 0 additions & 4 deletions gtsam_unstable/discrete/tests/testScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ TEST(schedulingExample, test) {

/* ************************************************************************* */
TEST(schedulingExample, smallFromFile) {
<<<<<<< HEAD
#ifndef __QNX__
=======
#if !defined(__QNX__)
>>>>>>> 93f463ddbf8e990e6dccc622fcb8ecb67f21549a
string path(TOPSRCDIR "/gtsam_unstable/discrete/examples/");
#else
string path(""); //Same Directory
Expand Down
8 changes: 0 additions & 8 deletions gtsam_unstable/partition/tests/testFindSeparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,11 @@ TEST ( Partition, edgePartitionByMetis2 )
graph.push_back(std::make_shared<GenericFactor3D>(2, 3, 2, NODE_POSE_3D, NODE_POSE_3D, 20));
graph.push_back(std::make_shared<GenericFactor3D>(3, 4, 3, NODE_POSE_3D, NODE_POSE_3D, 1));
//QNX Testing: fix tiebreaker to match
<<<<<<< HEAD
#ifndef __QNX__
std::vector<size_t> keys{0, 1, 2, 3, 4};
#else
//Anything where 2 is before 0 will work.
std::vector<size_t> keys{2, 0, 1, 3, 4};
=======
#if !defined(__QNX__)
std::vector<size_t> keys{0, 1, 2, 3, 4};
#else
//Anything where 2 is before 0 will work.
std::vector<size_t> keys{2, 0, 3, 1, 4};
>>>>>>> 93f463ddbf8e990e6dccc622fcb8ecb67f21549a
#endif

WorkSpace workspace(6);
Expand Down
2 changes: 1 addition & 1 deletion tests/testSerializationSlam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ TEST(SubgraphSolver, Solves) {
KeyInfo keyInfo(Ab);
std::map<Key, Vector> lambda;
system.build(Ab, keyInfo, lambda);

// Create a perturbed (non-zero) RHS
const auto xbar = system.Rc1().optimize(); // merely for use in zero below
auto values_y = VectorValues::Zero(xbar);
Expand Down

0 comments on commit 20d72d0

Please sign in to comment.