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

Stephan Bergmann sbergman at redhat.com
Thu Feb 2 08:23:21 UTC 2017


On 02/01/2017 10:57 PM, Khaled Hosny wrote:
> 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.

Not sure why Norbert introduced that as UNX-only in 
<https://cgit.freedesktop.org/libreoffice/core/commit/?id=c176cb8907530a795cb0e38de8193df931f891fb> 
"decorate tempfile name's to help identify leaks' author".  I see no 
good reason not to also enable it on Windows.



More information about the LibreOffice mailing list