Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On Wed, Feb 01, 2017 at 10:41:33AM +0100, Miklos Vajna wrote:
Hi Khaled,

On Wed, Feb 01, 2017 at 09:38:02AM +0200, Khaled Hosny <khaledhosny@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>.)

It seems that LO_TESTNAME name is currently not set on Windows (or that
is my reading of sal/cppunittester/cppunittester.cxx).

I’m rather not sure if we want to do this unconditionally for all tests
or not, but if that is the consensus, I think we can make sure
LO_TESTNAME is set also on Windows (assuming there is no reason not to
do so) and use it.

Regards,
Khaled

Attachment: signature.asc
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.