diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-19 20:32:28 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-12-19 22:44:15 +0100 |
commit | db2ced6c8c42c3fd6bcf77186fdc4c0332928fad (patch) | |
tree | db89f1eb8840335a0e78f8822b295a1026a3dc27 /vcl | |
parent | 49fe525412ce321a6b94091f76e01ec39c3e35f6 (diff) |
uitest: warn if the command is not executed
Change-Id: I53bfa5ef7594eeb7446cdb9e4ba211839e255197
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/uitest/uitest.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/uitest/uitest.cxx b/vcl/source/uitest/uitest.cxx index 46457ebcc6f1..45383887d4a4 100644 --- a/vcl/source/uitest/uitest.cxx +++ b/vcl/source/uitest/uitest.cxx @@ -18,10 +18,12 @@ void UITest::executeCommand(const OUString& rCommand) { - comphelper::dispatchCommand( + bool bSuccess = comphelper::dispatchCommand( rCommand, {{"SynchronMode", -1, css::uno::Any(false), css::beans::PropertyState_DIRECT_VALUE}}); + + SAL_WARN_IF(!bSuccess, "uitest", "failed to execute command: " << rCommand); } std::unique_ptr<UIObject> UITest::getFocusTopWindow() |