[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - libreofficekit/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jul 17 15:09:10 UTC 2018
libreofficekit/qa/tilebench/tilebench.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 7740223e300b67a1d620aafecd5146cf3fddfc3f
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Fri Mar 16 20:29:27 2018 -0400
Commit: pranavk <pranavk at collabora.co.uk>
CommitDate: Tue Jul 17 17:08:50 2018 +0200
lok: be informative and exit when tilebench fails to initialize
Change-Id: I11078e36aafc715b7103998a17e0cb01926b8e97
Reviewed-on: https://gerrit.libreoffice.org/51618
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
(cherry picked from commit 519293447189f75e842065f7ff211d395d0da4b6)
Reviewed-on: https://gerrit.libreoffice.org/57575
Reviewed-by: pranavk <pranavk at collabora.co.uk>
Tested-by: pranavk <pranavk at collabora.co.uk>
diff --git a/libreofficekit/qa/tilebench/tilebench.cxx b/libreofficekit/qa/tilebench/tilebench.cxx
index 751fb179169f..ed3d57d05b3f 100644
--- a/libreofficekit/qa/tilebench/tilebench.cxx
+++ b/libreofficekit/qa/tilebench/tilebench.cxx
@@ -113,6 +113,12 @@ int main( int argc, char* argv[] )
aTimes.emplace_back("initialization");
// coverity[tainted_string] - build time test tool
Office *pOffice = lok_cpp_init(argv[1]);
+ if (pOffice == nullptr)
+ {
+ fprintf(stderr, "Failed to initialize Office from %s\n", argv[1]);
+ return 1;
+ }
+
aTimes.emplace_back();
const int max_parts = (argc > 3 ? atoi(argv[3]) : -1);
More information about the Libreoffice-commits
mailing list