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

Khaled Hosny khaledhosny at eglug.org
Wed Feb 1 07:38:02 UTC 2017


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).

Regards,
Khaled


More information about the LibreOffice mailing list