Skip to content

Commit

Permalink
* Removing warning from tests/test_shared_record.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jredmondson committed Jun 23, 2018
1 parent 3fe5587 commit 132c9c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_shared_record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ typedef KnowledgeRecord::Integer Integer;

void test_unshared_record (void)
{
#if defined(__GNUC__) && (__GNUC__ < 5)
std::cout << "This test ignored in old versions of g++ with COW strings\n";
#else
KnowledgeRecord rec;

std::string str = "Hello World";
Expand All @@ -23,9 +26,6 @@ void test_unshared_record (void)

std::string str_out = rec.to_string();

#if defined(__GNUC__) && (__GNUC__ < 5)
std::cout << "This test ignored in old versions of g++ with COW strings\n";
#else
TEST_NE(orig_ptr, str_out.c_str());
#endif

Expand Down

0 comments on commit 132c9c8

Please sign in to comment.