Skip to content

Commit

Permalink
Fixed incorrect includes for the boost unit testing framework
Browse files Browse the repository at this point in the history
The previous includes were causing incorrect memory allocation behavior
and application crashes under C++20.
  • Loading branch information
iagaponenko committed Sep 23, 2023
1 parent 5b71cdf commit 2d28b78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/replica/testCsv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
#include "replica/protocol.pb.h"

// Boost unit test header
#define BOOST_TEST_MODULE JsonLibrary
#include "boost/test/included/unit_test.hpp"
#define BOOST_TEST_MODULE Csv
#include "boost/test/unit_test.hpp"

using namespace std;
namespace test = boost::test_tools;
Expand Down
2 changes: 1 addition & 1 deletion src/replica/testIngestRequestMgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

// Boost unit test header
#define BOOST_TEST_MODULE IngestRequestMgr
#include "boost/test/included/unit_test.hpp"
#include "boost/test/unit_test.hpp"

using namespace std;
using namespace boost::unit_test;
Expand Down
2 changes: 1 addition & 1 deletion src/replica/testMessageQueue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

// Boost unit test header
#define BOOST_TEST_MODULE NamedMutexRegistry
#include "boost/test/included/unit_test.hpp"
#include "boost/test/unit_test.hpp"

using namespace std;
using namespace boost::unit_test;
Expand Down

0 comments on commit 2d28b78

Please sign in to comment.