aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_framework.cc3
-rw-r--r--test/test_framework.hh3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/test_framework.cc b/test/test_framework.cc
index 8d249ef1f..187e06f8c 100644
--- a/test/test_framework.cc
+++ b/test/test_framework.cc
@@ -31,6 +31,7 @@
using namespace test;
+#ifndef DOXYGEN
namespace
{
std::string exception_to_debug_string(const std::exception & e)
@@ -67,8 +68,6 @@ namespace
};
}
-#ifndef DOXYGEN
-
void
test::set_exception_to_debug_string(std::string (*f) (const std::exception &))
{
diff --git a/test/test_framework.hh b/test/test_framework.hh
index c90e80583..652f3e9c7 100644
--- a/test/test_framework.hh
+++ b/test/test_framework.hh
@@ -189,6 +189,9 @@ namespace test
static bool run_tests();
};
+ /**
+ * Change the function used to get a string description of an exception.
+ */
void set_exception_to_debug_string(std::string (*) (const std::exception &));
}