| commit | 519293447189f75e842065f7ff211d395d0da4b6 | [log] |
|---|---|---|
| author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | Fri Mar 16 20:29:27 2018 -0400 |
| committer | Ashod Nakashian <ashnakash@gmail.com> | Wed Mar 21 23:35:43 2018 +0100 |
| tree | ad2d84429696e812a715c514ccb618c951a7a83e | |
| parent | 2c498cfe21145a9290e004b10ad87f28605d230e [diff] |
lok: be informative and exit when tilebench fails to initialize Change-Id: I11078e36aafc715b7103998a17e0cb01926b8e97 Reviewed-on: https://gerrit.libreoffice.org/51618 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
diff --git a/libreofficekit/qa/tilebench/tilebench.cxx b/libreofficekit/qa/tilebench/tilebench.cxx index 751fb17..ed3d57d 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);