aboutsummaryrefslogtreecommitdiffstats
path: root/tests/perf/decperf.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/perf/decperf.cxx')
-rw-r--r--tests/perf/decperf.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/perf/decperf.cxx b/tests/perf/decperf.cxx
index e1307070..a6c65a22 100644
--- a/tests/perf/decperf.cxx
+++ b/tests/perf/decperf.cxx
@@ -102,6 +102,8 @@ void DummyOutStream::flush()
void DummyOutStream::overrun(size_t needed)
{
flush();
+ if (avail() < needed)
+ throw rdr::Exception("Insufficient dummy output buffer");
}
CConn::CConn(const char *filename)