diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-09-04 11:02:25 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-09-04 21:19:41 +0200 |
commit | e0712f4339c69a0cae80585df8563fe40d152177 (patch) | |
tree | 4e970c04a872771176dc90929ef8194b70db4cae /vcl | |
parent | 7f02eb18b6051a7df42bf784eac542f2665e7281 (diff) |
pdfexport: improved detection of failure to print with --disable-gui
PDF printing tests cannot run when we don't have the proper
support enabled, so we need to detect those cases and
avoid failing the test unnecessarily.
Change-Id: Ia602dbb5c3d16c082a8ff6e707db90501bb5453c
Reviewed-on: https://gerrit.libreoffice.org/78610
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/cppunit/pdfexport/pdfexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index bcc4d11d1682..03f412016f6e 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -638,7 +638,7 @@ void PdfExportTest::testSofthyphenPos() SvFileStream aFile(maTempFile.GetURL(), StreamMode::READ); SvMemoryStream aMemory; aMemory.WriteStream(aFile); - if (aFile.bad()) + if (aFile.bad() || !aMemory.GetSize()) { // Printing to PDF failed in a non-interesting way, e.g. CUPS is not // running, there is no printer defined, etc. |