summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 19:15:08 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-30 19:15:08 +0000
commitc5d9f849903889ff43383660d1a403d55364918a (patch)
tree476e966ad78998595d2bf7986b8c79f985eaccfb
parentPass fPIC only to gcc and clang (diff)
downloadnetfs-c5d9f849903889ff43383660d1a403d55364918a.tar.bz2
netfs-c5d9f849903889ff43383660d1a403d55364918a.tar.xz
netfs-c5d9f849903889ff43383660d1a403d55364918a.zip
Fix recursion in test function
-rw-r--r--netfs/unittests/testLib.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/netfs/unittests/testLib.cpp b/netfs/unittests/testLib.cpp
index b44ab37..d3ce2fe 100644
--- a/netfs/unittests/testLib.cpp
+++ b/netfs/unittests/testLib.cpp
@@ -4,14 +4,16 @@
#include <entCache.impl.h>
#include <lockHelpers.h>
+/// @cond
namespace std {
ostream &
operator<<(ostream & strm, const ResolvedAs & r)
{
- strm << r;
+ strm << (int)r;
return strm;
}
}
+/// @endcond
struct TestEntry {
TestEntry(int i, std::string n) : id(i), name(std::move(n)) { }