tests: Fix segfault in TableNameTree test suite when all test logs are enabled

Change-Id: I0acb886d38a09b764cb3e324490a7c52b945d4fa
Refs: #2564
diff --git a/tests/daemon/table/name-tree.t.cpp b/tests/daemon/table/name-tree.t.cpp
index de7ecbb..2a5bd40 100644
--- a/tests/daemon/table/name-tree.t.cpp
+++ b/tests/daemon/table/name-tree.t.cpp
@@ -275,7 +275,7 @@
   void
   end()
   {
-    BOOST_CHECK_MESSAGE(m_names.empty(), "excess Names including " << *m_names.begin());
+    BOOST_CHECK(m_names.empty());
   }
 
 private: