summaryrefslogtreecommitdiff
path: root/test/UnitClient.cpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-06-16 17:55:23 +0100
committerMichael Meeks <michael.meeks@collabora.com>2017-06-16 20:25:23 +0100
commit7ea5f71a7bd29ab855c7b19a01e19ed9b3fd2fbf (patch)
tree1d303f2a3a510ed15756ac600f0bde3bc02d0a82 /test/UnitClient.cpp
parentdb13014e00358303f577518c96e29e23e544c1a8 (diff)
Units: allow filtering of user alerts.
Catch things that kill tests like disk-full earlier. Change-Id: Ib50b516063305f2fc93b662ec3ad9ab6c52c6c92
Diffstat (limited to 'test/UnitClient.cpp')
-rw-r--r--test/UnitClient.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/UnitClient.cpp b/test/UnitClient.cpp
index 46aaaf34b..5d29516cc 100644
--- a/test/UnitClient.cpp
+++ b/test/UnitClient.cpp
@@ -35,6 +35,12 @@ public:
_worker.join();
}
+ virtual bool filterAlertAllusers(const std::string & msg)
+ {
+ std::cout << "Alert: " << msg << "\n";
+ return false;
+ }
+
void configure(Poco::Util::LayeredConfiguration& config) override
{
UnitWSD::configure(config);