What is the best way to pass a flag from a unit test?

Miklos Vajna vmiklos at collabora.co.uk
Wed Feb 1 09:41:33 UTC 2017


Hi Khaled,

On Wed, Feb 01, 2017 at 09:38:02AM +0200, Khaled Hosny <khaledhosny at eglug.org> wrote:
> What the best way to detect, inside VCL, that a given CppunitTest is
> being run and do something conditionally? I basically want to detect if
> a given class of unit tests is run and disable all font searching and
> fallback and just use a hard-coded font name so that the tests are not
> affected by what fonts are available or not on the system (or that the
> theory).

At one place vcl code already checks for LO_TESTNAME.

(That may be a better option compared to the one in the comment of
<https://gerrit.libreoffice.org/#/c/33775>.)

Regards,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20170201/e83d2004/attachment.sig>


More information about the LibreOffice mailing list