Fixes invalid error message, when timeouting on gui() call 76/169576/3
authorRadoslaw Cybulski <r.cybulski@partner.samsung.com>
Wed, 7 Feb 2018 14:36:35 +0000 (15:36 +0100)
committerLukasz Oleksak <l.oleksak@samsung.com>
Thu, 8 Feb 2018 15:03:41 +0000 (15:03 +0000)
Change-Id: I20016ca4c0405ab9f371ff35971c646e8e01578e

src/batch/BatchRunner.cpp

index 0c8cfbf..896be30 100644 (file)
@@ -630,6 +630,8 @@ private:
                if (pred()) return true;
                auto res = h.waitForCondition(timeout, pred);
                if (!res) {
+                       if (searchForAnyChange)
+                               throw EvaluationFailure{} << "wait for gui: operation timeouted, context change never came";
                        throw EvaluationFailure{} << "wait for gui ('" << name << "'): operation timeouted, " <<
                                                                          "current root name is '" << h->rootName << "'";
                }